Mira256.encrypt

Encrypts the given byte array data.

This method encrypts the data using the Mira algorithm with the specified encryption key. and an optional seed value. The encryption is done in place.

class Mira256
static pure
void
encrypt
(
ref ubyte[] data
,
string key
,
ulong seed = 0
)

Parameters

data ubyte[]

Reference to the byte array to be encrypted.

key string

The encryption key as a string. Must be either 256 or 512 bits.

seed ulong

An optional seed value used for encryption. Defaults to 0.

Meta