Class EncryptionUtils

java.lang.Object
be.personify.util.io.EncryptionUtils

public class EncryptionUtils extends Object
  • Constructor Details

    • EncryptionUtils

      public EncryptionUtils()
    • EncryptionUtils

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

    • 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