net.sourceforge.openstego
Class OpenStegoCrypto

java.lang.Object
  extended bynet.sourceforge.openstego.OpenStegoCrypto

public class OpenStegoCrypto
extends java.lang.Object

This is the class for providing cryptography support to OpenStego.


Method Summary
 byte[] decrypt(byte[] input)
          Method to decrypt the data
 byte[] encrypt(byte[] input)
          Method to encrypt the data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encrypt

public byte[] encrypt(byte[] input)
               throws OpenStegoException
Method to encrypt the data

Parameters:
input - Data to be encrypted
Returns:
Encrypted data
Throws:
OpenStegoException

decrypt

public byte[] decrypt(byte[] input)
               throws OpenStegoException
Method to decrypt the data

Parameters:
input - Data to be decrypted
Returns:
Decrypted data (returns null if password is invalid)
Throws:
OpenStegoException