Anura256

Implementation of Anura256 digester.

Anura256 is a fast and efficient pseudo-fiestel block based block cipher that primarily works by shuffling data around and works with blocks of 64 bits. It utilizes a 256-bit key for encryption and decryption.

Members

Static functions

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

Decrypts the given data using Anura256 algorithm.

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

Encrypts the given data using Anura256 algorithm.

Examples

import tern.digest.anura;

ubyte[] data = [1, 2, 3, 4, 5];
string key = "0123456789ABCDEF0123456789ABCDEF"; // Must be 32 bytes (256 bits)
Anura256.encrypt(data, key);
Anura256.decrypt(data, key);

Meta