File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Security and the fly likes encryption using certificate Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » Security
Reply Bookmark "encryption using certificate" Watch "encryption using certificate" New topic
Author

encryption using certificate

Rajit Patel
Greenhorn

Joined: Aug 01, 2008
Posts: 9
Hi,

I am new for security. I want to encrypt and decrypt sensitive information before storing in database using server certificate.

Right now i am encrypting and decrypting information using RSA algorithm and generating public and private key from KeyGenerator class..

But i dont know how to use certificate in code to encrypt and decrypt data. I have generated certificate using keytool.

if anybody can help me with code, then it will be great help for me.....

Thanks in andvance................
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35222
    
    7
You don't need a certificate for en/decryption, you need just the key. The Java API for this is called JCE, and you can find more information about it, including links to code samples, at http://faq.javaranch.com/java/SecurityFaq#encryption


Android appsImageJ pluginsJava web charts
pavithra murthy
Ranch Hand

Joined: Feb 06, 2009
Posts: 53
you can make use of this command below . this requires itext.jar

 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: encryption using certificate
 
Similar Threads
Java encryption and decryption
String Encryption in javascript and Decryption in java
java code for DES algorithm
java source code for DES algorithm
3DES encryption and decryption