XXTEA

Implementation of XXTEA (Corrected Block TEA) digester.

XXTEA is a corrected version of XTEA with a fixed block size of 64 bits and a simpler key schedule. It is designed to be more resistant against certain types of attacks compared to XTEA.

Members

Static functions

decrypt
void decrypt(ubyte[] data, string key)

Decrypts the given byte array data using XXTEA algorithm.

encrypt
void encrypt(ubyte[] data, string key)

Encrypts the given byte array data using XXTEA algorithm.

Examples

import tern.digest.tea;

ubyte[] data = [1, 2, 3, 4, 5];
string key = "my_secret_key";
XXTEA.encrypt(data, key);

Meta