CryptoBox.encrypt

Encrypt a message using a shared secret key

struct CryptoBox
static
Vector!ubyte
encrypt

Parameters

input const(ubyte)*

the input data

input_len size_t

the length of input in bytes

master_key SymmetricKey

the key used to encrypt the message

rng RandomNumberGenerator

a ref to a random number generator, such as AutoSeededRNG

Meta