diff options
author | Alex Auvolat <alex@adnab.me> | 2022-05-20 12:49:53 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-05-20 12:49:53 +0200 |
commit | 46145350eb0e3bae8ca935d0f0f23eb1d40e6f58 (patch) | |
tree | e96976dd2e5e5e8f6e9bf9025ef4eb2446fff318 /src/login/static_provider.rs | |
parent | addaf087abfaa9fd41f75ce0c2181a2df48a972a (diff) | |
download | aerogramme-46145350eb0e3bae8ca935d0f0f23eb1d40e6f58.tar.gz aerogramme-46145350eb0e3bae8ca935d0f0f23eb1d40e6f58.zip |
Implement some crypto
Diffstat (limited to 'src/login/static_provider.rs')
-rw-r--r-- | src/login/static_provider.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/static_provider.rs b/src/login/static_provider.rs index 74a6c14..fb8ec68 100644 --- a/src/login/static_provider.rs +++ b/src/login/static_provider.rs @@ -86,7 +86,7 @@ pub fn hash_password(password: &str) -> Result<String> { pub fn verify_password(password: &str, hash: &str) -> Result<bool> { use argon2::{ - password_hash::{rand_core::OsRng, PasswordHash, PasswordVerifier}, + password_hash::{PasswordHash, PasswordVerifier}, Argon2, }; let parsed_hash = |