Skip to main content

import_password

Function import_password 

Source
pub async fn import_password(
    raw: impl Into<Vec<u8>>,
    options: DeriveOptions,
) -> Result<Password, Error>
Expand description

Import a password.

Empty passwords are accepted — deliberately asymmetric with hkdf::import_ikm, whose material is a cryptographic secret with no legitimate empty form, where a password is end-user input the platform also accepts empty. A policy with no grant enabled fails Error::NotPermitted.