Versions in this module Expand all Collapse all v1 v1.0.0 Mar 31, 2026 Changes in this version + const DefaultSalt + func CreateArgon2(cfg Argon2, password string) (string, error) + func CreateBcrypt(cost int, password string) (string, error) + func CreateMD5(str string) string + func CreatePBKDF2(cfg PBKDF2, password string) (string, error) + func CreateScrypt(cfg Scrypt, password string) (string, error) + func VerifyArgon2(password, storedHash string) (bool, error) + func VerifyBcrypt(password, storedHash string) bool + func VerifyPBKDF2(password string, storedStr string) (bool, error) + func VerifyScrypt(password, storedHash string) (bool, error) + type Argon2 struct + func DefaultArgon2() Argon2 + type PBKDF2 struct + PBKDF2Iterations int + PBKDF2KeyLength int + SaltLength int + func DefaultPBKDF2() PBKDF2 + type Scrypt struct + func DefaultScrypt() Scrypt