CLASS: RSAKeyGenerator
Method: void generateKeyPair("<public key file name>","<private key file name>")
CLASS: RSAEncDec
Method: String encrypt("your plane string message", "<location of public key file>")
[Returns the base64 encoded string that you can send easily]
Method: String decrtpt("<above base64 encoded string>", "<location of private key file>")
[Returns original plane string message]
For details see "readme.txt" and main() methods avaliable in each class
Download project at : https://github.com/meamit/rsa-demo
how to add ur code in my application? its didnot create any files
ReplyDeletein which location public privite keys create?
ReplyDeletedepends on how you are running,, those file are created in the locaiton from where the program is executed. If you are running it in eclipse then it the same directory as the project directory (where u have .project file)
DeleteThis comment has been removed by the author.
ReplyDelete