v3

package
v0.0.0-...-9ceb821 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(key string, token string) (string, error)

Decrypt decrypt a token to reveal the options used to generate it

func Encrypt

func Encrypt(key string, opts string) (string, error)

Encrypt given a key and opts (key/value formatted string) encrypts the message, generating a valid token to be used in EdgeCast products.

Types

type RandomIV

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

RandomIV random IV generator.

func (*RandomIV) Generate

func (iv *RandomIV) Generate() ([]byte, error)

Generate creates a random IV

Jump to

Keyboard shortcuts

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