guarana.toolkit.task.streamdealers.ciphers
Interface ICipher

All Known Implementing Classes:
PBECipher

public interface ICipher

The interface every cipher must implement.

Since:
Guaranį SDK 1.0.0
Author:
Rafael Z. Frantz

Method Summary
 byte[] decrypt(byte[] data)
          Decrypts an array of bytes.
 byte[] encrypt(byte[] data)
          Encrypts an array of bytes.
 

Method Detail

encrypt

byte[] encrypt(byte[] data)
               throws CipherException
Encrypts an array of bytes.

Parameters:
data - the array to be encrypted.
Returns:
an array of encrypted bytes.
Throws:
CipherException - if this method cannot encrypt the data.

decrypt

byte[] decrypt(byte[] data)
               throws CipherException
Decrypts an array of bytes.

Parameters:
data - the array to be decrypted.
Returns:
an array of decrypted bytes.
Throws:
CipherException - if this method cannot decrypt the data.


Guaranį DSL Home