hs512service

package
v0.0.0-...-7cbedea Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New SignerChecker using HS256 alg

Types

type HS512Service

type HS512Service struct {
	Key []byte
}

HS512Service used to sing and check jwt tokens

func (*HS512Service) Check

func (service *HS512Service) Check(payload string) ([]jwtservices.Tuple, error)

Check using HS256

func (*HS512Service) Sign

func (service *HS512Service) Sign(tuples ...jwtservices.Tuple) (string, error)

Sign using HS256

Jump to

Keyboard shortcuts

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