Package com.openstego.desktop
Class OpenStegoCrypto
java.lang.Object
com.openstego.desktop.OpenStegoCrypto
This is the class for providing cryptography support to OpenStego.
-
Field Details
-
ALGO_DES
Constant for algorithm - DES- See Also:
-
ALGO_AES128
Constant for algorithm - AES128- See Also:
-
ALGO_AES256
Constant for algorithm - AES256- See Also:
-
-
Constructor Details
-
OpenStegoCrypto
Default constructor- Parameters:
password
- Password to use for encryptionalgorithm
- Cryptography algorithm to use. If null or blank value is provided, then it defaults to AES128- Throws:
OpenStegoException
-
-
Method Details
-
encrypt
Method to encrypt the data- Parameters:
input
- Data to be encrypted- Returns:
- Encrypted data
- Throws:
OpenStegoException
-
decrypt
Method to decrypt the data- Parameters:
input
- Data to be decrypted- Returns:
- Decrypted data (returns
null
if password is invalid) - Throws:
OpenStegoException
-