Skip to content

New hash features #1

@TrevorVass

Description

@TrevorVass
  1. allow more hashers (md5, sha1, etc)
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions