Documentation ¶
Overview ¶
Package hash provides a utility to create hash from string or bytes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComparePasswords ¶
ComparePasswords, Compare hash bcrypt password and plaintext password.
func CreateHashByte ¶
CreateHashByte from string, using sha256.
func CreateRandomId ¶
CreateRandomId, generate hash using uuid and split hash result.
func CreateSmallHash ¶
CreateSmallHash, generate hash and split hash result.
func HashAndSalt ¶
HashAndSalt, Creating password hash using bcrypt with DefaultCost.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.