dcrypt.nacl.box

Members

Functions

box
ubyte[] box(in ubyte[] msg, in ubyte[] nonce, in ubyte[] secret_key, in ubyte[] public_key)

Encrypt a message using asymmetric cryptography.

box_open
ubyte[] box_open(in ubyte[] box, in ubyte[] nonce, in ubyte[] secret_key, in ubyte[] public_key)

Decrypts a packet generated by box().

box_pubkey
ubyte[32] box_pubkey(in ubyte[] secret_key)

Generate a public key from a secret key.

test_box
void test_box(in ubyte[] msg, in ubyte[] boxed_ref, in ubyte[] nonce, in ubyte[] sk, in ubyte[] pk)

Helper function for testing.

Meta