Function encrypt_with_params

Source
pub fn encrypt_with_params(
    plaintext: &[u8],
    passphrase: &[u8],
    log_n: u8,
    r: u32,
    p: u32,
) -> Result<Vec<u8>, JsError>
Expand description

Encrypts plaintext with the specified scrypt parameters and into a newly allocated Uint8Array.

ยงErrors

Returns an error if the scrypt parameters is invalid.