Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultSaltSize = 16
)
The default values for generation
View Source
const (
SCrypt = 0x1
)
type of crypt
Variables ¶
This section is empty.
Functions ¶
func FindToken ¶
FindToken takes HTTP headers and looks for the token and see if exists at the database and enabled
func GenPassword ¶
GenPassword generate a new password string
func GenSalt ¶
GenSalt creates a random crypto based salt, based on a given size. if not given, then DefaultSaltSize is in use
func ValidPassword ¶
ValidPassword Validates a given password with the result of the string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.