pub fn encrypt_with_params(
    plaintext: &[u8],
    passphrase: &[u8],
    m_cost: u32,
    t_cost: u32,
    p_cost: u32
) -> Result<Vec<u8>, JsError>
Expand description

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

§Errors

Returns Err if the Argon2 context is invalid.