RSA Decryption - Chapter 4
Hi!
I am testing the "Basic RSA" example in page-87 of Chapter 4. When I run the example I've got the same cipherText that is showed in the book, however the plain text after the decryption step is totally different.
Book:
input: beef
Cipher: d2db15838f6c1c98702c5d54fe0add42
plain: beef
My run:
input: beef
Cipher: d2db15838f6c1c98702c5d54fe0add42
plain: 984569fd87584ea0af29264bd3252c15
I'm running JDK 6.0, and I'm installing the Bouncy Castle provider during execution:
import org.bouncycastle.jce.provider.BouncyCastleProvider ;
Security.addProvider(new BouncyCastleProvider());
Thank you very much.
|