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 |
decrypt(String value,
byte[] iv)
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 |
encrypt(String value,
byte[] iv)
Encrypt a clear text String.
|
String |
encryptString(String sPlainText)
Encrypts a string (treated in UNICODE).
|
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 encrypt(String value, byte[] iv)
Encryptor
public String decrypt(String value)
Encryptor
public String decrypt(String value, byte[] iv)
Encryptor
Copyright © 2003–2020 Ignite Realtime. All rights reserved.