mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-11-05 07:48:37 +02:00
Remove get_random_64()
Its uses are replaced by get_randm_bytes() or encode_random_bytes().
This commit is contained in:
1 parent
d0baa23f9a
commit
7445ee40f8
4 files changed
+3
-8
No files matched your search
@@ -81,7 +81,7 @@ impl Send {
|
||||
|
||||
if let Some(password) = password {
|
||||
self.password_iter = Some(PASSWORD_ITER);
|
||||
let salt = crate::crypto::get_random_64();
|
||||
let salt = crate::crypto::get_random_bytes::<64>().to_vec();
|
||||
let hash = crate::crypto::hash_password(password.as_bytes(), &salt, PASSWORD_ITER as u32);
|
||||
self.password_salt = Some(salt);
|
||||
self.password_hash = Some(hash);
|
||||
|
||||
Reference in new issue
Block a user