Skip to main content

hash_admin_password

Function hash_admin_password 

Source
pub fn hash_admin_password(password: &str) -> String
Expand description

Hash a password with SHA-256 and a fixed salt.

Returns a hex-encoded hash string suitable for storage and comparison. The salt is prepended to the password before hashing.