CryptoBox.encrypt

Encrypt a message using a passphrase

struct CryptoBox
static
string
encrypt
(
const(ubyte)* input
,
size_t input_len
,
in string passphrase
,)

Parameters

input const(ubyte)*

the input data

input_len size_t

the length of input in bytes

passphrase string

the passphrase used to encrypt the message

rng RandomNumberGenerator

a ref to a random number generator, such as AutoSeededRNG

Meta