This class handles methods to crypt and decrypt messages with Blowfish
(efficient: 4000/s both at 56 and
128 keysize).
Usage:
- Create a Blowfish object: Blowfish key = new Blowfish();
- Create a key:
- Generate: key.generateKey();
The method key.getSecretKeyInBytes() allow getting the key in Bytes.
- From an external source: key.setSecretKey(arrayOfBytes);
- To crypt a String in a Base64 format: String myStringCrypt =
key.cryptToString(myString);
- To decrypt one string from Base64 format to the original String: String
myStringDecrypt =
key.decryptStringInString(myStringCrypte);