Understanding of RSA asymmetric encryption

Public key encryption, private key decryption

Advantages: to ensure that the recipient of the information is expected

logic:

  • Information publisher: Obtain the corresponding public key, encrypt the plaintext to obtain the ciphertext, and publish it.
  • Information recipient: receive the ciphertext, decrypt the plaintext with the private key.

Private key encryption, public key decryption

Advantages: to ensure that the sender of the information is expected

logic:

  • Information publisher: Use the private key to encrypt the plaintext to obtain the ciphertext, and publish it.
  • Information recipient: Obtain the corresponding public key, receive the ciphertext, and use the public key to decrypt the plaintext.

Guess you like

Origin blog.csdn.net/jw2268136570/article/details/100053749