public static byte[] encrypt(byte[] insecure, ExternalContext ctx) { return symmetric(insecure, ctx, Cipher.ENCRYPT_MODE); }
public static byte[] decrypt(byte[] secure, ExternalContext ctx) { return symmetric(secure, ctx, Cipher.DECRYPT_MODE); }
+ "in application scope using the key '" + INIT_SECRET_KEY_CACHE + "'"); return symmetric(data, (SecretKey)object, _algorithm, _algorithmParams, iv, mode);