crypto

package
v0.0.0-...-b63ba6b Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateOTPSecret

func GenerateOTPSecret() (string, error)

GenerateOTPSecret generates the 80-bit base32 encoded string user's secret

func GenerateSRIHashes

func GenerateSRIHashes(data string) models.SRIHashes

func GetJWTToken

func GetJWTToken(user api.User, key string) (string, error)

func Hash

func Hash(data string, hashType string) []byte

func VerifyJWTToken

func VerifyJWTToken(tokenString string, key string) (jwt.Claims, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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