pwd v1

Hashing and verification password

Repository

Installation

go get -u github.com/metadiv-io/pwd

Hash password

hashed, err := pwd.Hash("password")

Warning: password cannot longer than 72 bytes

Verify password

Verifyreturn true if the the password matched with hash.

ok := pwd.Verify("password", hashed)

Last updated