encoder

package
v0.0.0-...-72e4b90 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aes

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

func (*Aes) Decrypt

func (a *Aes) Decrypt(data []byte) ([]byte, error)

func (*Aes) Encrypt

func (a *Aes) Encrypt(data []byte) ([]byte, error)

func (*Aes) SetKey

func (a *Aes) SetKey(key []byte)

type Encoder

type Encoder interface {
	Encrypt(data []byte) ([]byte, error)
	Decrypt(data []byte) ([]byte, error)
	SetKey(key []byte)
}

func NewEncoder

func NewEncoder() Encoder

Jump to

Keyboard shortcuts

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