Class DatabaseEncryption
java.lang.Object
ecmwf.common.security.DatabaseEncryption
Encrypts database values using a stable field-specific purpose and record identity as authenticated context.
-
Method Summary
-
Method Details
-
encrypt
public static String encrypt(String purpose, String record, byte[] value) throws IOException, GeneralSecurityException - Throws:
IOExceptionGeneralSecurityException
-
decrypt
public static byte[] decrypt(String purpose, String record, String stored) throws IOException, GeneralSecurityException - Throws:
IOExceptionGeneralSecurityException
-