Class CthingStringEncryptor

java.lang.Object
org.cthing.jasypt.CthingStringEncryptor
All Implemented Interfaces:
org.jasypt.encryption.pbe.PasswordBased, org.jasypt.encryption.pbe.PBEStringEncryptor, org.jasypt.encryption.StringEncryptor

public class CthingStringEncryptor extends Object implements org.jasypt.encryption.pbe.PBEStringEncryptor

A Jasypt string encryptor.

Encryptor configuration
Implementation: PooledPBEStringEncryptor
Algorithm: PBEWITHHMACSHA512ANDAES_256
Key iterations: 1000
Pool size: 1
Salt class: RandomSaltGenerator
IV class: RandomIvGenerator
  • Constructor Details

    • CthingStringEncryptor

      public CthingStringEncryptor()
      Constructs and configures a string encryptor. The instance can be reused.
  • Method Details

    • setPassword

      public void setPassword(String password)
      Specified by:
      setPassword in interface org.jasypt.encryption.pbe.PasswordBased
    • encrypt

      public String encrypt(String message)
      Specified by:
      encrypt in interface org.jasypt.encryption.StringEncryptor
    • decrypt

      public String decrypt(String encryptedMessage)
      Specified by:
      decrypt in interface org.jasypt.encryption.StringEncryptor