Interface IEncryptUtils


public interface IEncryptUtils
IEncryptUtils Use this utils to encrypt and decrypt string
  • Method Details

    • encrypt

      String encrypt(String value)
      Encrypt string
      Parameters:
      value - to encrypt
      Returns:
      encrypted value
    • encrypt

      String encrypt(String privateKey, String initVector, String value)
      Encrypt string with an encryption key
      Parameters:
      privateKey - the encryption key (128 bit key)
      initVector - the init vector for encryption (128 bit key)
      value - to encrypt
      Returns:
      encrypted value
    • decrypt

      String decrypt(String encrypted)
      Decrypt encrypted string
      Parameters:
      encrypted - string to decrypt
      Returns:
      decrypted string
    • decrypt

      String decrypt(String privateKey, String initVector, String encrypted)
      Decrypt encrypted string with an encryption key
      Parameters:
      privateKey - the encryption key (128 bit key)
      initVector - the init vector for encryption (128 bit key)
      encrypted - string to decrypt
      Returns:
      decrypted string