Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sign ¶
Sign generates a string checkPass with PBKDF2 & SHA-3 by the user' id and pass. http://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf recommended salt length >= 16 bytes default iter count is 12480 default result length is 64
fmt.Println(Sign([]byte("salt..."), "user_id", "user_password")) fmt.Println(Sign([]byte("salt..."), "user_id", "user_password"), 1024) // iterCount == 1024 fmt.Println(Sign([]byte("salt..."), "user_id", "user_password"), 1024, 32)
Types ¶
Click to show internal directories.
Click to hide internal directories.