Cryptobox Message Routines
This namespace holds various high-level crypto functions
Encrypt a message using a passphrase
| const(ubyte)* input | the input data |
| size_t input_len | the length of input in bytes |
| string passphrase | the passphrase used to encrypt the message |
| RandomNumberGenerator rng | a ref to a random number generator, such as AutoSeededRNG |
Decrypt a message encrypted with CryptoBox::encrypt
| const(ubyte)* input | the input data |
| size_t input_len | the length of input in bytes |
| string passphrase | the passphrase used to encrypt the message |
Decrypt a message encrypted with CryptoBox::encrypt
| string input | the input data |
| string passphrase | the passphrase used to encrypt the message |