org.jscience.util
Interface SynchronousKey

All Known Implementing Classes:
CypherKey, SimpleKey

public interface SynchronousKey

An interface to support very simple synchronous key encryption. The entire data to be encrypted needs to fit into memory, i.e. this scheme is not appropriate to encode/decode large files at once.

See Also:
Encoded

Method Summary
 byte[] decode(byte[] encrypted)
          decodes the given byte array
 byte[] encode(byte[] plainSource)
          encodes the given byte array
 java.lang.String getKeySignature()
          returns a signature that is used to identify the key that needs to be known for both, encoding and decoding
 

Method Detail

decode

byte[] decode(byte[] encrypted)
decodes the given byte array

Parameters:
encrypted - DOCUMENT ME!
Returns:
DOCUMENT ME!

encode

byte[] encode(byte[] plainSource)
encodes the given byte array

Parameters:
plainSource - DOCUMENT ME!
Returns:
DOCUMENT ME!

getKeySignature

java.lang.String getKeySignature()
returns a signature that is used to identify the key that needs to be known for both, encoding and decoding

Returns:
DOCUMENT ME!