Skip to content
etcimon edited this page Dec 4, 2014 · 2 revisions

Encryption using a passphrase

This is a set of simple routines that encrypt some data using a passphrase. There are defined in the header botan.constructs.cryptobox.

string encrypt(in ubyte* input, size_t input_len,
               in string passphrase,
               RandomNumberGenerator rng);

Encrypt the contents using passphrase.

string decrypt(in ubyte* input, size_t input_len, in string passphrase);

string decrypt(in string input, in string passphrase);

Decrypts something encrypted with encrypt.