RSA
Encryption
- Obtains the recipient B's public key (n, e).
- Represents the plaintext message as a positive integer m, 1 < m < n
- Computes the ciphertext c = me mod n.
- Sends the ciphertext c to RECEIVER
Deryption
- Uses his private key (n, d) to compute m = cd mod n.
- Extracts the plaintext from the message representative m.
For BAHI
A-1 ,B-2, C-3 , D-4,E-5,.... etc (Message Encoded Using 01-26)
B=>2=> 27 mod 33 = 8 =>H
A => 1=>17 mod 33 = 1 =>A
H =>8=> 87 mod 33 = 17 =>Q
I=> 9=>97 mod 33 = 3 => C
Cipher Text Message : HAQC
A-0 ,B-1, C-2 , D-3,E-4,.... etc ( Message Encoded Using 00-25 as per question)
B=>1=> 17 mod 33 = 0 =>B
A => 0=>07 mod 33 = 1 =>A
H =>7=> 77 mod 33 = 13 =>N
I=> 8=>87 mod 33 = 17 => R
Cipher Text Message : BANR
[ No options will be matched taking encoding scheme 00-25 as per the question ]