can you use one time password to encrypt communication between mobile and server?

StackOverflow https://stackoverflow.com/questions/10357978

  •  04-06-2021
  •  | 
  •  

Вопрос

If SSL is not acceptable for my app to communicate with the client, how should I encrypt the traffic? I need something fast (so public key algorithms are out of question). I was thinking about One Time Password, but the problem is that I can not store a very long key on the mobile app because of app size restrictions. What would you recommend?

Это было полезно?

Решение

How do you know that SSL isn't acceptably fast? Have you benchmarked it? As David said, SSL only uses public-key cryptography for the setup and to establish a shared secret, which is then used as the key to quick symmetric algorithms. So before you reject SSL, you should actually test it first.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top