encryption

package
v1.0.100 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefault

func NewDefault(key string) interfaces.EncryptionProvider

Types

type Encryption

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

func (*Encryption) Decrypt

func (c *Encryption) Decrypt(meta string, data []byte) (res []byte, err error)

func (*Encryption) Encrypt

func (c *Encryption) Encrypt(data []byte) (meta string, res []byte, err error)

Jump to

Keyboard shortcuts

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