Documentation ¶
Index ¶
- func Bcrypt(password string) string
- func BcryptVerify(hashedPassword string, password string) bool
- func BcryptWithCost(password string, cost int) string
- func Hash(str string, h hash.Hash) string
- func HashFile(filename string, h hash.Hash) (string, error)
- func Md5(str string) string
- func Md5File(filename string) (string, error)
- func Sha1(str string) string
- func Sha1File(filename string) (string, error)
- func Sha256(str string) string
- func Sha256File(filename string) (string, error)
- func Sha512(str string) string
- func Sha512File(filename string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BcryptVerify ¶
BcryptVerify Verifies that a password matches a hashed password
func BcryptWithCost ¶
BcryptWithCost Creates a password hash with cost
The higher the cost value, the longer the time
func Sha256File ¶
Sha256File Calculate the sha256 hash of a file
func Sha512File ¶
Sha512File Calculate the sha512 hash of a file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.