Skip to main content

seal_box

Function seal_box 

Source
pub fn seal_box(
    key: &[u8; 32],
    label: &[u8],
    plaintext: &[u8],
) -> Result<Vec<u8>, String>
Expand description

The box of plaintext under key, its nonce drawn from the system’s entropy: 192 random bits, so one key seals any number of boxes without two sharing a nonce.