K
K
Kirill Zhilyaev2019-03-27 00:55:35
Encryption
Kirill Zhilyaev, 2019-03-27 00:55:35

How does two-way asymmetric encryption work?

How to work with asymmetric encryption?
For an example of RSA: everywhere they write they say that a private key and a public key are generated. We encrypt with open and decrypt with closed. But what about the answer? For example, closed on the server, and I need to encrypt the response. How to be here? Generate on the client side a closed one and send an open one to the server so that it can encrypt the response? Somehow encrypt the answer with the closed one and decrypt it with the open one (although by design the open one is transmitted openly)? Or switch to another encryption algorithm, such as symmetric ciphers?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2019-03-27
@kirill_782

Yes, switch to a different encryption algorithm.
Asymmetric encryption and decryption are slow. Therefore, only the newly generated session password is transmitted by this method, and asymmetric encryption makes it possible to think that no one has intercepted it. The next session is encrypted with a symmetric fast algorithm.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question