| java.lang.Object org.jivesoftware.util.Blowfish
Blowfish | public class Blowfish (Code) | | A class that provides easy Blowfish encryption.
author: Markus Hahn author: Gaston Dombiak |
Field Summary | |
final static char[] | HEXTAB |
Constructor Summary | |
public | Blowfish(String password) Creates a new Blowfish object using the specified key (oversized
password will be cut). |
HEXTAB | final static char[] HEXTAB(Code) | | |
Blowfish | public Blowfish(String password)(Code) | | Creates a new Blowfish object using the specified key (oversized
password will be cut).
Parameters: password - the password (treated as a real unicode array) |
decryptString | public String decryptString(String sCipherText)(Code) | | decrypts a hexbin string (handling is case sensitive)
Parameters: sCipherText - hexbin string to decrypt decrypted string (null equals an error) |
destroy | public void destroy()(Code) | | destroys (clears) the encryption engine,
after that the instance is not valid anymore
|
encryptString | public String encryptString(String sPlainText)(Code) | | Encrypts a string (treated in UNICODE) using the
standard Java random generator, which isn't that
great for creating IVs
Parameters: sPlainText - string to encrypt encrypted string in binhex format |
|
|