encryption

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encryption

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

func NewEncryption

func NewEncryption() *Encryption

func (*Encryption) Decrypt

func (encryption *Encryption) Decrypt(data []byte) ([]byte, error)

func (*Encryption) Encrypt

func (encryption *Encryption) Encrypt(data []byte) ([]byte, error)

func (*Encryption) PrepareToken

func (encryption *Encryption) PrepareToken() ([]byte, error)

func (*Encryption) SetKey

func (encryption *Encryption) SetKey(key string)

func (*Encryption) ValidateToken

func (encryption *Encryption) ValidateToken(token []byte) bool

Jump to

Keyboard shortcuts

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