The following Java code is used to encrypt/decrypt Social Security numbers in our database:
public static String base64EncryptCode(String clearText, String strSharedSecret) throws Exception {
String HASH_ALGORITHM = "HmacSHA1";
String ENCRYPTION_ALGORITHM = "AES";
&nbs ...
Go to the complete details ...