Skip to main content

hash

Function hash 

Source
pub async fn hash(password: String) -> Result<String, ParseError>
Expand description

Hash a password for storage in _User._hashed_password.

Takes an owned String because the work moves to another thread. The caller already owns one at both call sites.