Sealed boxes for Rust/WebAssembly
This Rust crate provides libsodium sealed boxes for WebAssembly.
Usage:
// Recipient: create a new key pair
let recipient_kp = create;
// Sender: encrypt the message for the recipient whose public key is recipient_kp.pk
let msg = b"test";
let ciphertext = seal;
// Recipient: decrypt the ciphertext using the key pair
let decrypted_msg = open.unwrap;
assert_eq!;
Compile with cargo wasi
.