|
Openfire 3.9.2 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jivesoftware.util.Blowfish
public class Blowfish
A class that provides easy Blowfish encryption.
| Constructor Summary | |
|---|---|
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). |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Blowfish()
public Blowfish(String password)
password - the password (treated as a real unicode array)| Method Detail |
|---|
public String encryptString(String sPlainText)
sPlainText - string to encrypt
public String decryptString(String sCipherText)
sCipherText - hexbin string to decrypt
public void destroy()
public String encrypt(String value)
Encryptor
encrypt in interface Encryptorvalue - The clear text attribute
public String decrypt(String value)
Encryptor
decrypt in interface Encryptorvalue - The encrypted attribute in Base64 encoding
public void setKey(String key)
Encryptor
setKey in interface Encryptorkey - The encryption key
|
Openfire 3.9.2 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||