Documentation ¶
Index ¶
- func CompareHashes(this_enc string, that_enc string) (bool, error)
- func CrumbBase(cfg CrumbConfig, req *http.Request, extra ...string) (string, error)
- func CrumbKey(cfg CrumbConfig, req *http.Request) string
- func DecryptCrumb(cfg CrumbConfig, enc_crumb string) (string, error)
- func EncryptCrumb(cfg CrumbConfig, text string) (string, error)
- func GenerateCrumb(cfg CrumbConfig, req *http.Request, extra ...string) (string, error)
- func HashCrumb(cfg CrumbConfig, raw string) (string, error)
- func ValidateCrumb(cfg CrumbConfig, req *http.Request, enc_var string, extra ...string) (bool, error)
- type CrumbConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptCrumb ¶
func DecryptCrumb(cfg CrumbConfig, enc_crumb string) (string, error)
func EncryptCrumb ¶
func EncryptCrumb(cfg CrumbConfig, text string) (string, error)
func GenerateCrumb ¶
func ValidateCrumb ¶
Types ¶
type CrumbConfig ¶
func DefaultCrumbConfig ¶
func DefaultCrumbConfig() CrumbConfig
Click to show internal directories.
Click to hide internal directories.