DEV Community

[Comment from a deleted post]
Collapse
 
paragoniescott profile image
Scott Arciszewski • Edited
for _ in range(iterations):
    pass_hash = hashlib.sha3_512(bytes(pass_hash, encoding="utf-8")).hexdigest()

This is PBKDF1-SHA3. To understand why PBKDF1 is undesirable, read this StackOverflow answer that goes further in depth than I have the time to right now: stackoverflow.com/a/17396367/2224584

Most of the people reading this are much better off not rolling your own cryptography. Do this instead.