jwtic

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(v Data, signed string) error

Decrypt ...

func Encrypt

func Encrypt(v Data) (string, error)

Encrypt ... from struct into signed string

func LoadTokenKey

func LoadTokenKey(key string)

LoadTokenKey ...

Types

type Data

type Data interface {
	Marshal() ([]byte, error)
	Unmarshal([]byte) error
}

Data ...

type MapData

type MapData map[string]interface{}

MapData ...

func (MapData) Marshal

func (m MapData) Marshal() ([]byte, error)

Marshal ...

func (MapData) Unmarshal

func (m MapData) Unmarshal(d []byte) error

Unmarshal ...

Jump to

Keyboard shortcuts

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