RSA Cryptosystem


Alice's Private Information

Alice chooses a prime p:
Alice chooses another prime q:
Alice chooses the block size:
The value of k is (p - 1)(q - 1) =
The value of her private key d is e-1 (mod n) =

Alice's Public Information

The value of n is pq =
Alice chooses her public key e:

Bob Encrypts a Message

Bob computes c = me (mod n) to encrypt each ASCII number m into a codeword c

Bob writes a text message:Bob's message in ASCII:Bob's encrypted message:

Alice Decrypts the Message

Alice computes m = cd (mod n) to decrypt each codeword c into an ASCII number m

Alice receives Bob's message:Alice decrypts message into ASCII:Bob's text message