Class SimpleGCMByteEncryptor

  • All Implemented Interfaces:
    org.jasypt.encryption.ByteEncryptor

    public class SimpleGCMByteEncryptor
    extends Object
    implements org.jasypt.encryption.ByteEncryptor
    • Constructor Detail

      • SimpleGCMByteEncryptor

        public SimpleGCMByteEncryptor​(SimpleGCMConfig config)
    • Method Detail

      • encrypt

        public byte[] encrypt​(byte[] message)
        Specified by:
        encrypt in interface org.jasypt.encryption.ByteEncryptor
      • decrypt

        public byte[] decrypt​(byte[] encryptedMessage)
        Specified by:
        decrypt in interface org.jasypt.encryption.ByteEncryptor
      • generateSecretKey

        public static SecretKey generateSecretKey()
      • generateBase64EncodedSecretKey

        public static String generateBase64EncodedSecretKey()
      • getAESKeyFromPassword

        public static SecretKey getAESKeyFromPassword​(char[] password,
                                                      org.jasypt.salt.SaltGenerator saltGenerator,
                                                      int iterations,
                                                      String algorithm)