Here's an online article on Public key cryptography
at Carnegie Melon Univ
Quoting the text from the website
Public key cryptography is especially useful in situations where there is a need for confidentiality, integrity, and non-repudiation.
I wanted to try out the integrity claim, so I tried out the RSA demo encryption at
http://shop-js.sourceforge.net/crypto2.htm
I put a random seed, using the random.org link provided.
Clicked on Generate key and it showed me that the seed size is 1024.
Click Generate key again and it fills up your p, q, d and e.
I put in the text
Aman Raheja is testing Public key Crypto
Now hit Encrypt and I got
qWRocnhbzN4ej6bhDLwoG3GDKDaEXmcCQkenPpCSXjW"AsmIqj93tVljg"yK
e8CCODpmpdiaEea2
I changed it to (man-in-the-middle)
qWRocnhbzN4ej6bhDLwoG3GDKDaEXmcCQkenPpCSXjW"AsmIqj93tVljg"yK
e8CCODpmpdiaEea3
Then hit decrypt, and I get
Aman Raheja is testing Public key Cryptk
Integrity???