public final class EncryptionXTEA extends Object
An implementation of the EncryptionXTEA block cipher algorithm.
This implementation uses 32 rounds. The best attack reported as of 2009 is 36 rounds (Wikipedia).
It requires 32 byte long encryption key, so SHA256 password hash is used.
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGN
Blocks sizes are always multiples of this number.
|
| Constructor and Description |
|---|
EncryptionXTEA(byte[] password) |
public static final int ALIGN
public void encrypt(byte[] bytes,
int off,
int len)
public void decrypt(byte[] bytes,
int off,
int len)
public static byte[] getHash(byte[] data)
data - the data to hashCopyright © 2015. All Rights Reserved.