secrets

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2020 License: MIT Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL