These classes are used from the crypto package that comes standard with JDK 1.4
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.NoSuchPadding
import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKe
import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder;
Main Topics
Browse All Topics





by: anilallewarPosted on 2009-06-17 at 11:59:24ID: 24651343
The snippet below encrypt the data with a key that is stored in text file. AES is one of the most prefered symmetric encryption alogorithm available. The implementaftion uses standard Java JCE using a key that you can create using the createKey() method.
Select allOpen in new window