Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthKey ¶
func AuthKey() []byte
AuthKey is used to authenticate the cookie value using HMAC. Gorilla docs suggest 32 or 64 bytes long.
func CSRFKey ¶
func CSRFKey() []byte
CSRFKey is used for Cross Site Request Forgery (CSRF) protection
func EncryptionKey ¶
func EncryptionKey() []byte
EncriptionKey is used to encrypt the cookie value. Gorilla docs suggest 32 bytes long for AES-256.
func PasswordResetSecret ¶
func PasswordResetSecret() []byte
PasswordResetSecret is used for securing password reset tokens. For an example, see: github.com/dchest/passwordreset
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.