Class HawaiiUrlSafeStringEncryptor

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

    public class HawaiiUrlSafeStringEncryptor
    extends HawaiiStringEncryptor
    Hawaii String Encryptor with Url safe base64 encoding.
    • Constructor Detail

      • HawaiiUrlSafeStringEncryptor

        public HawaiiUrlSafeStringEncryptor​(String key,
                                            String initVector)
        Creates a new HawaiiUrlSafeStringEncryptor with the given key and init vector.
        Parameters:
        key - the key used for encryption/decryption
        initVector - the init vector used for encryption/decryption
    • Method Detail

      • encrypt

        public String encrypt​(String message)
        Encrypt the input message.
        Specified by:
        encrypt in interface org.jasypt.encryption.StringEncryptor
        Overrides:
        encrypt in class HawaiiStringEncryptor
        Parameters:
        message - the message to be encrypted
        Returns:
        the result of encryption
      • decrypt

        public String decrypt​(String encryptedMessage)
        Decrypt the encrypted input message.
        Specified by:
        decrypt in interface org.jasypt.encryption.StringEncryptor
        Overrides:
        decrypt in class HawaiiStringEncryptor
        Parameters:
        encryptedMessage - the message to be decrypted
        Returns:
        the result of decryption