-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
Description
- allow more hashers (md5, sha1, etc)
- generalize the hash function to accept a salt defaulted to none
OR if you do want a separate saltedhash class i would actually have it store the salt in front of the hash in plain text. For example:
"[salt]$[hashpayload]" since the salt isn't a secret anyways (usually it's just a way to protect against rainbow table attacks, right?) it's just a convenience to encapsulate it. then you could have a method to get the salt out if you wanted. Or test against the hash without even passing in the salt (since it's already in there).
Requested by Jason Arnst-Goodrich... notify when done.
Reactions are currently unavailable