Code covered by the BSD License
suriyanath (view profile)
02 Jun 2014
09 Jun 2014)
RSA algorithm for encrypting and decrypting a message
Watch this File
This code asks for Two prime numbers and then computes Public and Private key. Then the message is encrypted using Public key and decrypted using Private key. An example is shown in figure.
you should use extended eucleudianalgorithm to search for d.
this implementation is incorrect
dec(enc(msg)) != msg
changed the title to RSA algorithm