Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateSalt ¶
GenerateSalt generates a random salt of specified length
func HashPassword ¶
HashPassword hashes a password using PBKDF2 with a given salt and iteration count. keyLen is the length of the resulting hash in bytes,可任意改 33 34 64 啥都行 iterations is the number of iterations to use in PBKDF2 , 既重复进行多少次哈希计算(对哈希后的结果再哈希,就更难破译)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.