Versions in this module Expand all Collapse all v1 v1.0.0 Oct 13, 2022 Changes in this version + const PasswordCost + func CheckPassword(password string) int + func CheckUsername(username string) int + func EncryptPassByBCR(password string) (string, error) + func EncryptPassByMd5(password string) (string, error) + func GenerateToken() string + func Uint32() uint32 + func Uint32n(maxN uint32) uint32 + func VerifyPassByBCR(password string, hashedPassword string) bool + func VerifyPassByMD5(password string, hashedPassword string) bool + type RNG struct + func (r *RNG) Seed(n uint32) + func (r *RNG) Uint32() uint32 + func (r *RNG) Uint32n(maxN uint32) uint32