encryption

package
v0.0.0-...-e416fe5 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Packer

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

Packer : sign encrypt verify decrypt

func NewPacker

func NewPacker(key []byte) *Packer

NewPacker : Create New Packer

func (*Packer) NewToken

func (p *Packer) NewToken(exp time.Duration, id string) (string, error)

NewToken : Create New token

func (*Packer) Verify

func (p *Packer) Verify(tokenString string, id string) bool

Verify : token

Jump to

Keyboard shortcuts

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