WEBCLIENT hashers

Modul hashers.

Třídy

class PBKDF2WrappedSHA1PasswordHasher

Implementuje komponentu PBKDF2WrappedSHA1PasswordHasher v rámci aplikace.

Metody:

encode_sha1_hash()

Provádí operaci encode sha1 hash.

Parametry:
  • sha1_hash – Parametr sha1_hash se 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 password použí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().