Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncryptPassword ¶
EncryptPassword encrypts the given password with scrypt and the pre-defined security parameters.
func RandomBytes ¶
RandomBytes returns a generated bytes with the provided length.
Solution based on SO thread: http://stackoverflow.com/a/31832326/1590256
func RandomString ¶
RandomString returns a genrated string with the provided length.
func RandomStringSafe ¶
RandomStringSafe returns a generated string which is safe to use in basic auth passwords.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.