Interface Cryptor

All Known Implementing Classes:
DefaultCryptor

public interface Cryptor
Encrypts and decrypts Strings.
Since:
2.0
  • Method Summary

    Modifier and Type
    Method
    Description
    decrypt(String encryptedKey)
    Decrypts the password.
    encrypt(String plainKey)
    Encrypt the plain text password.
  • Method Details

    • decrypt

      String decrypt(String encryptedKey) throws Exception
      Decrypts the password.
      Parameters:
      encryptedKey - the encrypted password.
      Returns:
      The plain text password.
      Throws:
      Exception - If an error occurs.
    • encrypt

      String encrypt(String plainKey) throws Exception
      Encrypt the plain text password.
      Parameters:
      plainKey - The password.
      Returns:
      The encrypted password String.
      Throws:
      Exception - If an error occurs.