Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Iter is a number of iterations used to make pbkdf2 passwords. // 20000 is't a default value used in Django. Iter = 20000 // SaltSize is a size of salt used to make passwords. // 12 is default size used in Django. SaltSize = 12 // DefaultHasher is a default hashing algorithm. // pbkdf2_sha256 is used by default in Django DefaultHasher = "pbkdf2_sha256" )
Functions ¶
func CheckPassword ¶
CheckPassword checks if given password is matching given hash
func MakePassword ¶
MakePassword generates new password using algorithm set in DefaultHasher
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.