| Public Methods |
|
final
static
boolean
|
bad_key(byte[] key)
|
|
final
static
boolean
|
bad_key(long key)
|
|
static
void
|
cbc_encrypt(byte[] input, byte[] output, byte[] key, byte[] ivec, boolean encrypt)
Creates a DES cipher in Electronic Codebook mode, with no padding.
|
|
static
long
|
char_to_key(char[] passwdChars)
Generates DES key from the password.
|
|
static
byte[]
|
des_cksum(byte[] ivec, byte[] msg, byte[] key)
Encrypts the message blocks using DES CBC and output the
final block of 8-byte ciphertext.
|
|
static
void
|
long2octet(long input, byte[] output, int offset)
|
|
static
void
|
long2octet(long input, byte[] output)
|
|
static
byte[]
|
long2octet(long input)
|
|
static
long
|
octet2long(byte[] input, int offset)
|
|
static
long
|
octet2long(byte[] input)
|
|
final
static
byte[]
|
set_parity(byte[] key)
|
|
final
static
long
|
set_parity(long key)
|
|
static
byte[]
|
string_to_key_bytes(char[] passwdChars)
|