Class EncryptionUtils


  • public class EncryptionUtils
    extends Object
    • Constructor Detail

      • EncryptionUtils

        public EncryptionUtils()
      • EncryptionUtils

        public EncryptionUtils​(String value)
        Constructor
        Parameters:
        value - the value
    • Method Detail

      • encrypt

        public String encrypt​(String strToEncrypt,
                              byte[] salt)
        Encrypt the thing
        Parameters:
        strToEncrypt - the string to encrypt
        salt - the salt
        Returns:
        the encrypted string
      • decrypt

        public String decrypt​(String strToDecrypt,
                              byte[] salt)
        Decrypt the thing
        Parameters:
        strToDecrypt - the string to decrypt
        salt - the salt
        Returns:
        the decrypted string
      • getSalt

        public byte[] getSalt()
        Get some salt
        Returns:
        the salty salt