security

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Security

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

func Default

func Default(secret string) Security

func (Security) HashCompare

func (sec Security) HashCompare(pass, hash string) error

func (Security) HashCreate

func (sec Security) HashCreate(pass string) (string, error)

func (Security) TokenCreate

func (sec Security) TokenCreate(val jwt.Claims) (string, error)

func (Security) TokenFrom

func (sec Security) TokenFrom(tokenString string) (jwt.MapClaims, error)

Jump to

Keyboard shortcuts

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