Class SimpleAesEncryptor

java.lang.Object
io.ebeaninternal.server.type.SimpleAesEncryptor
All Implemented Interfaces:
io.ebean.config.Encryptor

public final class SimpleAesEncryptor extends Object implements io.ebean.config.Encryptor
Simple AES based encryption and decryption.
  • Constructor Details

    • SimpleAesEncryptor

      public SimpleAesEncryptor()
  • Method Details

    • decrypt

      public byte[] decrypt(byte[] data, io.ebean.config.EncryptKey encryptKey)
      Specified by:
      decrypt in interface io.ebean.config.Encryptor
    • encrypt

      public byte[] encrypt(byte[] data, io.ebean.config.EncryptKey encryptKey)
      Specified by:
      encrypt in interface io.ebean.config.Encryptor
    • decryptString

      public String decryptString(byte[] data, io.ebean.config.EncryptKey key)
      Specified by:
      decryptString in interface io.ebean.config.Encryptor
    • encryptString

      public byte[] encryptString(String valueFormatValue, io.ebean.config.EncryptKey key)
      Specified by:
      encryptString in interface io.ebean.config.Encryptor