Hi
I am using the below techinique for encrypting and decrypting the passwords.
http://en.allexperts.com/q/Java-1046/2009/3/encryption-decryption-using-java.htm
Based on the requirement what I get, I've to use SealedObject concept for encryption and decryption.
http://www.exampledepot.com/egs/javax.crypto/EncryptObject.html
I've to implement two methods which take String as parameter and String as return value.
public String encrypt(String str) { //new Logic for encrypting using SealedObject }
public String decrypt(String str) { // New logic for decrypting using SealedObject }
Steps
1. Original String
2. Get Encrypted String by invoking encrypt(originalStr)
3. Store the encStr in to DB
4. Read the encStr from DB
5. Get Decrypted(originalStr) by invoking decrypt(encStr)
so how do I save SealedObject as String into DB? is it is possible?
Excuse, if any thing wrong in question.
Looking for help
SvKrishnaReddy