signing

package
v0.0.0-...-f5c6364 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultSalt = "django.core.signing"

Variables

View Source
var (
	ErrInvalidData      = errors.New("invalid data")
	ErrBadSignature     = errors.New("signature does not match")
	ErrSignatureExpired = errors.New("signature expired")
)

Functions

This section is empty.

Types

type Signer

type Signer struct {
	// contains filtered or unexported fields
}

func NewSigner

func NewSigner(secretKey, salt string) Signer

func (Signer) Dumps

func (s Signer) Dumps(data []byte, compress bool) string

func (Signer) Loads

func (s Signer) Loads(signedValue string, maxAge time.Duration) (data []byte, err error)

Jump to

Keyboard shortcuts

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