Documentation
¶
Index ¶
- func BcryptHash(password string, cost int) (string, error)
- func GetRandBytes(n int) ([]byte, error)
- func HashSHA1(input string) []byte
- func HashSHA256(input string) []byte
- func HashSHA384(input string) []byte
- func HashSHA512(input string) []byte
- func HmacSHA1(input string, base64urlKey string) ([]byte, error)
- func HmacSHA256(input string, base64urlKey string) ([]byte, error)
- func HmacSHA384(input string, base64urlKey string) ([]byte, error)
- func HmacSHA512(input string, base64urlKey string) ([]byte, error)
- func IsBcryptHash(hash string) bool
- func IsPbkdf2Hash(hash string) bool
- func NewUUID() string
- func Pbkdf2Hash(data *Pbkdf2) (string, error)
- func VerifyBcryptHash(password, hash string) bool
- func VerifyPbkdf2Hash(password string, hashStored string) bool
- type ALG_SHA
- type Pbkdf2
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRandBytes ¶
func HashSHA256 ¶
func HashSHA384 ¶
func HashSHA512 ¶
func IsBcryptHash ¶ added in v1.4.0
func IsPbkdf2Hash ¶ added in v1.4.0
func Pbkdf2Hash ¶ added in v1.4.0
func VerifyBcryptHash ¶ added in v1.4.0
func VerifyPbkdf2Hash ¶ added in v1.4.0
Types ¶
Click to show internal directories.
Click to hide internal directories.