|
Luky Library - 4.1.1 (20061117-1148) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectluky.crypt.BlowfishCipher
public class BlowfishCipher
A Blowfish Ciphering object that can be used to crypt and decrypt strings
Revision Changes :

| Constructor Summary | |
|---|---|
BlowfishCipher(byte[] key,
Random rand)
default constructor |
|
BlowfishCipher(String key,
Random rand)
default constructor |
|
| Method Summary | |
|---|---|
byte[] |
decrypt(byte[] cipherText)
decrypt a byte array |
String |
decrypt(String input)
decrypt a string |
byte[] |
encrypt(byte[] plainText)
encrypt a byte array |
String |
encrypt(String input)
encrypt a string |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BlowfishCipher(String key,
Random rand)
key - the key which is used to decrypt or encrypt the stringsrand - the randomizer that is used to generate random numbers
public BlowfishCipher(byte[] key,
Random rand)
key - the key which is used to decrypt or encrypt the datarand - the randomizer that is used to generate random numbers| Method Detail |
|---|
public String encrypt(String input)
input - the string that is to be encrypted
public byte[] encrypt(byte[] plainText)
plainText - the byte array that is to be encrypted
public String decrypt(String input)
input - the string that is to be decrypt
public byte[] decrypt(byte[] cipherText)
cipherText - the byte array that is to be decrypt
|
Luky Library - 4.1.1 (20061117-1148) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||