Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateSalt ¶
GenerateSalt returns securely generated random bytes as a string. An error is returned if the system's secure random number generator fails to function correctly, in which case the caller should not continue.
func GetPasswordProtectedForm ¶
func GetPasswordProtectedForm( password, salt string, time, memory uint32, threads uint8, keyLen uint32) string
GetPasswordProtectedForm returns the protected form of the password using the salt and other provided parameters. The returned value is as follow: salt + hashedPassword Recommended parameters are time = 3 and memory = 32 * 1024
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.