Can any one suggest me the standard way to encrypt data and store in data. This is all about some pieace of information that needs to be stored in a encrypted format.
Asymmetric has a problem. The key (serializable object) gives problem when we port application to different JVMS. I need to store user password in database. Thats why i am reluctant, need a simple and best approach.
The standard Java API for encryption is JCE. Sun has a reference implementation, and there are a few third-party implementations (e.g. Cryptix and Bouncy Castle). For better guidance on an approach, please provide a more detailed description of what you're trying to do.
This page lets you download the AES (i.e., the current encryption standard used by the US government) algorithm in Java. Encrypt anything sensitive before it goes into the DB, decrypt it when it comes out. (Note that this is the extremely short version of how to store something securely, because you asked for something simple. Security is a process, not a product or an algorithm, so if you want things to be really secure, you'll have to learn a good deal more than to apply an encryption algorithm. But it is a good start.) [ August 29, 2005: Message edited by: Ulf Dittmer ]
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop