dwin / goArgonPass

goArgonPass is a Argon2 Password utility package for Go using the crypto library package Argon2 designed to be compatible with Passlib for Python and Argon2 PHP. Argon2 was the winner of the most recent Password Hashing Competition. This is designed for use anywhere password hashing and verification might be needed and is intended to replace implementations using bcrypt or Scrypt.
MIT License
18 stars 7 forks source link

Add ArgonVariant Type #3

Closed andrewmostello closed 5 years ago

andrewmostello commented 5 years ago

Add type checking around the Function parameter by creating an ArgonVariant type alias and two constants that contain valid values.

Leaving this as a raw string makes the package harder to use, and invites invalid values.

dwin commented 5 years ago

Thanks, you're correct and I will add it to the next version which is mostly cleanup and fixes like these.

andrewmostello commented 5 years ago

Great - thanks