aes

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *keepers.Keeper

Types

type Container

type Container struct {
	Data map[string]Data
	Key  string
}

func (Container) MarshalJSON

func (c Container) MarshalJSON() ([]byte, error)

func (*Container) Scan

func (c *Container) Scan(src interface{}) error

func (*Container) SetKey

func (c *Container) SetKey(keyName string) *Container

func (*Container) UnmarshalJSON

func (c *Container) UnmarshalJSON(b []byte) error

func (Container) Value

func (c Container) Value() (driver.Value, error)

type Data

type Data struct {
	Hash string `json:"hash"`
	Salt string `json:"salt"`
	// contains filtered or unexported fields
}

func (Data) Read

func (e Data) Read(p []byte) (n int, err error)

type Keeper

type Keeper struct{}

func (Keeper) Decrypt

func (p Keeper) Decrypt(config keepers.Config, content io.Reader) (io.Reader, error)

func (Keeper) Encrypt

func (p Keeper) Encrypt(config keepers.Config, content io.Reader) (io.Reader, error)

func (Keeper) Setup

func (p Keeper) Setup(input ...any) keepers.Config

Jump to

Keyboard shortcuts

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