crypto

package
v0.0.0-...-49d8a14 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(payload []byte) []byte

func DecryptWithExpiration

func DecryptWithExpiration(payload []byte, expiry time.Duration) []byte

func Encrypt

func Encrypt(payload []byte) []byte

func HMAC

func HMAC(payload []byte) []byte

func HMACVerify

func HMACVerify(payload []byte, signature []byte) bool

func InitCrypto

func InitCrypto(config ini.File)

func Sign

func Sign(payload []byte) []byte

func Verify

func Verify(payload, signature []byte) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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