net.sourceforge.openstego
Class OpenStegoCrypto

java.lang.Object
  extended by net.sourceforge.openstego.OpenStegoCrypto

public class OpenStegoCrypto
extends java.lang.Object

This is the class for providing cryptography support to OpenStego.


Constructor Summary
OpenStegoCrypto(java.lang.String password)
          Default constructor
 
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
 

Constructor Detail

OpenStegoCrypto

public OpenStegoCrypto(java.lang.String password)
                throws OpenStegoException
Default constructor

Parameters:
password - Password to use for encryption
Throws:
OpenStegoException
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


Copyright © 2007-2009 Samir Vaidya. All Rights Reserved.