Skip to main content
IBM  
Shop Support Downloads
IBM Home Products Consulting Industries News About IBM
IBM developerWorks : Java : Education - Tutorials
Java security, Part 1: Crypto basics
ZIPPDF (letter)PDF (A4)e-mail
Main menuSection menuFeedbackPrevious
Next Section
5. Secret messages with public keys
  


Public key cryptography sample execution page 5 of 5


 
D:\IBM>java PublicExample "This is a test!"

Start generating RSA key
Finish generating RSA key

BouncyCastle Security Provider v1.12

Start encryption
Finish encryption:
Ajsd843*342l,AD;LKJL;1!*AD(XLKASD498asdjlkkKSFJHDuhpja;d(kawe#kjalfcas,
.asd+,1LKSDJf;khaouiwheyahdsl87458q9734hjfc*nuywe

Start decryption
Finish decryption:
This is a test!

Next Section
Main menuSection menuFeedbackPrevious
About IBM | Privacy | Legal | Contact