org.jasypt.encryption
Interface ByteEncryptor

All Known Subinterfaces:
PBEByteCleanablePasswordEncryptor, PBEByteEncryptor
All Known Implementing Classes:
PooledPBEByteEncryptor, StandardPBEByteEncryptor

public interface ByteEncryptor

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

Since:
1.0
Author:
Daniel Fernández

Method Summary
 byte[] decrypt(byte[] encryptedMessage)
          Decrypt an encrypted message
 byte[] encrypt(byte[] message)
          Encrypt the input message
 

Method Detail

encrypt

byte[] encrypt(byte[] message)
Encrypt the input message

Parameters:
message - the message to be encrypted
Returns:
the result of encryption

decrypt

byte[] decrypt(byte[] encryptedMessage)
Decrypt an encrypted message

Parameters:
encryptedMessage - the encrypted message to be decrypted
Returns:
the result of decryption


Copyright © 2011 The JASYPT team. All Rights Reserved.