mirror of
https://github.com/Steffo99/appunti-magistrali.git
synced 2024-11-24 11:14:18 +00:00
305 B
305 B
Funzionamento
Computa l'hash un numero significativo di volte, detto rounds.
def pbkdf1(salt, password, rounds):
current_hash = hash(safe_concat(salt, password))
for _ in range(rounds-1):
current_hash = hash(current_hash)
return current_hash