Function abcrypt_py::encrypt_with_params
source · pub fn encrypt_with_params<'a>(
plaintext: &[u8],
passphrase: &[u8],
memory_cost: u32,
time_cost: u32,
parallelism: u32
) -> PyResult<Cow<'a, [u8]>>Expand description
Encrypts plaintext with the specified Argon2 parameters and into a newly
allocated bytes.
§Errors
Returns an error if the Argon2 context is invalid.