[−][src]Function boringauth::pass::derive_password
pub fn derive_password(password: &str) -> Result<String, ErrorCode>
Derivate a password so it can be stored.
The algorithm is automatically chosen by LibreAuth depending on the current state of cryptography. This is why you should keep this crate up-to-date.
Examples
let password = "1234567890"; let stored_password = boringauth::pass::derive_password(password).unwrap();