|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--BFishMod
This is the module for the Blowfish encryption algorithm.
Field Summary | |
static int |
BLOCK_SIZE
Size of encryption blocks (in bytes). |
int |
MAX_KEY_LENGTH
The maximum length for keys (in bytes). |
int |
MIN_KEY_LENGTH
Minimum size for the key length (in bytes). |
Constructor Summary | |
BFishMod()
The default constructor simply initializes the array values to the initial values required for the algorithm. |
Method Summary | |
byte[] |
decrypt(java.io.File file)
This method is implemented from the CryptInterface. |
java.io.File |
encrypt(java.io.File file)
This method is implemented from the CryptInterface class. |
boolean |
handles(java.lang.Object key)
This method is implemented from the ModInterface class. |
void |
setKey(byte[] key)
This method is used to set the key for the algorithm and initialize it. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public final int MAX_KEY_LENGTH
public static final int BLOCK_SIZE
public final int MIN_KEY_LENGTH
Constructor Detail |
public BFishMod()
Method Detail |
public java.io.File encrypt(java.io.File file)
encrypt
in interface CryptInterface
public byte[] decrypt(java.io.File file)
decrypt
in interface CryptInterface
public void setKey(byte[] key) throws java.lang.Exception
setKey
in interface CryptInterface
java.lang.Exception
- This is just in case your implementation throws junkpublic boolean handles(java.lang.Object key)
handles
in interface ModInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |