mrt

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 1 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMRTToken

func CreateMRTToken(service string, masterPassword string, payload interface{}, signingKey string) (header string, body string, err error)

CreateMRTToken will return a header and payload strings to encode the MRT on the response

func VerifyMRTToken

func VerifyMRTToken(tokenHeader string, tokenBody string, askedServicePubKey string, masterPassword string) (valid bool, payload []byte)

VerifyMRTToken is a utility function to verify and decrypt a MVT tokens

Types

This section is empty.

Jump to

Keyboard shortcuts

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