Skip to main content

password_salt

Function password_salt 

Source
pub fn password_salt(length: usize) -> Vec<u8> ⓘ
Expand description

php_password_make_salt($length), the salt password_hash() draws: $length * 3 / 4 + 1 random bytes in base64, + as ., cut to $length characters (22 for bcrypt, 16 for Argon2, which hashes these characters as its salt).