4.1 RSA

The RSA-Cryptosystem calculates in Zn , where n is the product of two primes. In the form presented here only numbers are encrypted. Texts must be coede aptly.
To send messages to Bob (cf. 4) encrypted with RSA the following steps have to be executed:

1.Generate two large primes p und q ( p != q) (2.3.2)
2.determine n = pq and phi(n) = ( p-1)(q-1)
3.choose random b with 1 < b < phi(n) and gcd(b, phi(n)) = 1 (2.1)
4.determine private key a = b-1 mod phi(n) (2.2)
5.publish n and b as public keys


If Alice now wants to send a message m (< n) to Bob, she calculates x = mb mod n (2.3.3).

Bob decodes the encrypted message x by calculating m = xa mod n.


start applet in new window






5 DES