- Advanced Blockchain Development
- Imran Bashir Narayan Prusty
- 83字
- 2021-06-24 14:04:56
Encryption and decryption using RSA
RSA uses the following equation to produce ciphertext:
C = Pe mod n
This means that plaintext P is raised to e number of times and then reduced to modulo n. Decryption in RSA is provided in the following equation:
P = Cd mod n
This means that the receiver who has a public key pair (n, e) can decipher the data by raising C to the value of the private key d and reducing to modulo n.