keystone.common.password_hashers.sha512_crypt module¶
- class keystone.common.password_hashers.sha512_crypt.Sha512_crypt[source]¶
Bases:
PasswordHasher
passlib transition class for sha512_crypt password hashing
- ident: str = '$6$'¶
- name: str = 'sha512_crypt'¶
- static verify(password: bytes, hashed: str) bool [source]¶
Verify hashing password would be equal to the hashed value
- Parameters:
password (bytes) – Password to verify
hashed (string) – Hashed password. Used to extract hashing parameters
- Returns:
boolean whether hashing password with the same parameters would match hashed value