XTEA

Implementation of eXtended Tiny Encryption Algorithm (XTEA) digester.

XTEA is an extension of TEA with a larger block size (64 bits) and a more complex key schedule. It offers higher security than TEA, making it suitable for applications requiring stronger encryption.

Members

Static functions

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

Decrypts the given byte array data using XTEA algorithm.

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

Encrypts the given byte array data using XTEA algorithm.

Examples

import tern.digest.tea;

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

Meta