Interface StringEncryptor

All Known Subinterfaces:
PBEStringCleanablePasswordEncryptor, PBEStringEncryptor
All Known Implementing Classes:
PooledPBEStringEncryptor, StandardPBEStringEncryptor

public interface StringEncryptor

Common interface for all Encryptors which receive a String message and return a String result.

Since:
1.0
Author:
Daniel Fernández
  • Method Summary

    Modifier and Type
    Method
    Description
    decrypt(String encryptedMessage)
    Decrypt an encrypted message
    encrypt(String message)
    Encrypt the input message
  • Method Details

    • encrypt

      String encrypt(String message)
      Encrypt the input message
      Parameters:
      message - the message to be encrypted
      Returns:
      the result of encryption
    • decrypt

      String decrypt(String encryptedMessage)
      Decrypt an encrypted message
      Parameters:
      encryptedMessage - the encrypted message to be decrypted
      Returns:
      the result of decryption