RSA encryption
I learned a lot about assymetric key cryptography today! It was kind
of neat. I'll write down about RSA here.
RSA encryption
- Example of public-private key pair algorithm.
- Text encrypted in blocks of 2048 or 4096 bits.
- Based on exponentiation and modulus arithmetic.
- Select two large primes
.
- Calculate
.
- Calculate
.
- Select integer
- Calculate
- Public key is
,
private is
- Encryption happens as follows: let plaintext be
.
Ciphertext is computed as
- For decryption raise ciphertext to the power of
.