Constructor and Description |
---|
Blowfish()
Creates a new Blowfish object using the default key
|
Blowfish(String password)
Creates a new Blowfish object using the specified key (oversized
password will be cut).
|
Modifier and Type | Method and Description |
---|---|
String |
decrypt(String value)
Decrypt an encrypted String.
|
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 |
encrypt(String value)
Encrypt a clear text String.
|
String |
encryptString(String sPlainText)
Encrypts a string (treated in UNICODE) using the
standard Java random generator, which isn't that
great for creating IVs
|
void |
setKey(String key)
Set the encryption key.
|
public Blowfish()
public Blowfish(String password)
password
- the password (treated as a real unicode array)public String encryptString(String sPlainText)
sPlainText
- string to encryptpublic String decryptString(String sCipherText)
sCipherText
- hexbin string to decryptpublic void destroy()
public String encrypt(String value)
Encryptor
public String decrypt(String value)
Encryptor
Copyright © 2003-2008 Jive Software.