encrypt

package
v0.0.0-...-4ca8788 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encryptor

type Encryptor struct {
	cipher.AEAD
}

func NewEncryptor

func NewEncryptor(passphrase string) (ret *Encryptor, err error)

func (*Encryptor) Decrypt

func (o *Encryptor) Decrypt(data []byte) (ret []byte, err error)

func (*Encryptor) DecryptFile

func (o *Encryptor) DecryptFile(filename string) (ret []byte, err error)

func (*Encryptor) DecryptInstance

func (o *Encryptor) DecryptInstance(v interface{}, data []byte) (err error)

func (*Encryptor) Encrypt

func (o *Encryptor) Encrypt(data []byte) (ret []byte, err error)

func (*Encryptor) EncryptFile

func (o *Encryptor) EncryptFile(filename string, data []byte) (err error)

func (*Encryptor) EncryptInstance

func (o *Encryptor) EncryptInstance(v interface{}) (ret []byte, err error)

Jump to

Keyboard shortcuts

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