|
|
@ -1,7 +1,7 @@
|
|
|
|
//! Hash and salt functions
|
|
|
|
//! Hash and salt functions
|
|
|
|
|
|
|
|
|
|
|
|
use rand::distributions::{Distribution, Uniform};
|
|
|
|
use rand::distributions::{Distribution, Uniform};
|
|
|
|
use sha2::{Sha512, Digest};
|
|
|
|
use sha2::{Digest, Sha512};
|
|
|
|
|
|
|
|
|
|
|
|
/// Compute a SHA-512 hash
|
|
|
|
/// Compute a SHA-512 hash
|
|
|
|
///
|
|
|
|
///
|
|
|
|