Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // N is a CPU/memory cost N int32 = 16384 R int32 = 8 // P Parallelization P int32 = 1 )
Functions ¶
func CompareHashPassword ¶
CompareHashPassword compares password hash by decoding and extracting the seed then calculating the hash and using constant time comparison to compare then.
func HashPassword ¶
HashPassword returns a password has created using scrypt. return [salt] + scrypt([salt], [credential], N=16384, r=8, p=1, keyLen=32);
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.