def needs_rehash

bend-collections-laws-crypto@1.0.0.0 · src/crypto/password.bend:85

import bend-collections-laws-crypto@1.0.0.0/src/crypto/password.bend as Password
import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/argon2/phc.bend as PHC

85# The encoded hash should be recomputed: it is not an Argon2id v=19 PHC string
86# with exactly these memory, passes, lanes, tag and salt lengths.
87def needs_rehash(encoded: String, params: Params) -> Bool:
88  rehash_parsed(PHC.parse(encoded), params)

Uses (5)

Used by (1)