Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to store javax.crypto.SecretKey in database while doing encryption

Status
Not open for further replies.

samjeyanth

Programmer
Aug 13, 2003
3
IN
Requirement:

A String(example: 421-22-2343) needs to be encrypted and stored in the database. We are going to use AES algorithm to do encryption and decryption. AES is dynamically generates javax.crypto.SecretKey. So this SecretKey also needs to be stored in the database along with the encrypted string so that we can decrypt the string lates using the same SecretKey. Could you please gimme some suggestions how to do this. Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top