Class JasyptCipher

java.lang.Object
com.github.cafapi.common.ciphers.jasypt.JasyptCipher
All Implemented Interfaces:
Cipher

public class JasyptCipher extends Object implements Cipher
Implementation of a SecurityProvider that uses Jasypt to provide basic text encryption/decryption capabilities. The strong encryptor is not used to avoid licensing/export issues.
  • Field Details

    • CONFIG_SECURITY_PASS

      public static final String CONFIG_SECURITY_PASS
      The keyword used to encrypt and decrypt data.
      See Also:
  • Constructor Details

  • Method Details

    • decrypt

      public String decrypt(String input)
      Description copied from interface: Cipher
      Decrypt a string.
      Specified by:
      decrypt in interface Cipher
      Parameters:
      input - the data to decrypt
      Returns:
      the decrypted data
    • encrypt

      public String encrypt(String input)
      Description copied from interface: Cipher
      Encrypt a string.
      Specified by:
      encrypt in interface Cipher
      Parameters:
      input - the data to encrypt
      Returns:
      the encrypted data