encrypt

Encrypts data using a specific key.

The input key must be exactly 8 bytes long.

pure
ubyte[]
encrypt
(
const(ubyte)[] data
,
const(ubyte)[] key
)

Parameters

data const(ubyte)[]

The data array to be encrypted

key const(ubyte)[]

The key used to encrypt the data

Return Value

Type: ubyte[]

An array of bytes containing the encrypted data

See Also

Meta