public final class BlowfishEasy extends Object
Constructor and Description |
---|
BlowfishEasy(String sPassword)
constructor to set up a string as the key (oversized password will be cut)
|
Modifier and Type | Method and Description |
---|---|
String |
decryptString(String sCipherText)
decrypts a hexbin string (handling is case sensitive)
|
void |
destroy()
destroys (clears) the encryption engine,
after that the instance is not valid anymore
|
String |
encryptString(String sPlainText)
encrypts a string (treated in UNICODE) using the
standard Java random generator, which isn't that
great for creating IVs
|
String |
encryptString(String sPlainText,
Random rndGen)
encrypts a string (treated in UNICODE)
|
public BlowfishEasy(String sPassword)
sPassword
- the password (treated as a real unicode array)public String encryptString(String sPlainText)
sPlainText
- string to encryptpublic String encryptString(String sPlainText, Random rndGen)
sPlainText
- string to encryptrndGen
- random generator (usually a java.security.SecureRandom instance)public String decryptString(String sCipherText)
sCipherText
- hexbin string to decryptpublic void destroy()
Copyright © 2015 Lucee