WEBCLIENT hashers
Modul hashers.
Třídy
- class PBKDF2WrappedSHA1PasswordHasher
Implementuje komponentu
PBKDF2WrappedSHA1PasswordHasherv rámci aplikace.Metody:
- encode_sha1_hash()
Provádí operaci encode sha1 hash.
- Parametry:
sha1_hash – Parametr
sha1_hashse předává do voláníencode().salt – Parametr salt používaný při výpočtu hashe hesla.
iterations – Parametr iterations používaný při výpočtu hashe hesla.
- Vrací:
Vrací proměnná
pass_hash.
- encode()
Provádí operaci encode.
- Parametry:
password – Heslo
passwordpoužívané při vytváření nebo aktualizaci účtu.salt – Parametr salt používaný při výpočtu hashe hesla.
iterations – Parametr iterations používaný při výpočtu hashe hesla.
- Vrací:
Vrací výsledek volání
encode_sha1_hash().