Package com.easydesk.crypto.provider
Class BlowfishCrypt
java.lang.Object
com.easydesk.crypto.provider.CleanCrypt
com.easydesk.crypto.provider.BlowfishCrypt
- All Implemented Interfaces:
CryptoAlgorithm
Blowfish
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.easydesk.crypto.provider.CleanCrypt
decrypt, encrytedFullPassword, getIteration, getRandom, getSalt, isHex, isValid, isValid, isValid, setCipher, setKeyLength, setSaltSize, setSeed, toBytes, toChars
-
Constructor Details
-
BlowfishCrypt
public BlowfishCrypt()Creates a new Blowfish object.
-
-
Method Details
-
encrypt
Performs the actual encryption.- Specified by:
encryptin interfaceCryptoAlgorithm- Overrides:
encryptin classCleanCrypt- Parameters:
value- The value to be encryptedsalt-iteration-- Returns:
- The encrypted value
- Throws:
GeneralSecurityException- various errors from the underlying ciphers.
-
encrypt
Performs the actual encryption.- Specified by:
encryptin interfaceCryptoAlgorithm- Overrides:
encryptin classCleanCrypt- Parameters:
value- The value to be encryptedsalt-iteration-- Returns:
- The encrypted value
- Throws:
GeneralSecurityException- various errors from the underlying ciphers.
-
encrypt
DOCUMENT ME!- Specified by:
encryptin interfaceCryptoAlgorithm- Overrides:
encryptin classCleanCrypt- Parameters:
value- DOCUMENT ME!key- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
GeneralSecurityException- DOCUMENT ME!
-
decrypt
- Specified by:
decryptin interfaceCryptoAlgorithm- Overrides:
decryptin classCleanCrypt- Parameters:
value- the value to be decryptedkey- DOCUMENT ME!- Throws:
GeneralSecurityException
-
getKey
- Specified by:
getKeyin interfaceCryptoAlgorithm- Overrides:
getKeyin classCleanCrypt- Parameters:
key-- Returns:
- key for blowfish
-