Holger's
Java API

com.antelmann.util
Interface SynchronousKey

All Known Implementing Classes:
CipherKey, 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.

Author:
Holger Antelmann
See Also:
Encoded

Method Summary
 byte[] decode(byte[] encrypted)
          decodes the given byte array
 byte[] encode(byte[] plainSource)
          encodes the given byte array
 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


encode

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


getKeySignature

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



(c) 2001-2006 Holger Antelmann - all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads