encryption

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithContext

func WithContext(ctx context.Context, enc *Encryption) context.Context

Types

type Encryption

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

func FromContext

func FromContext(ctx context.Context) (*Encryption, error)

func New

func New(logger *zap.Logger, secret string, specialKeys []string, encryptionPrefix string) *Encryption

func (*Encryption) DecryptSecrets

func (e *Encryption) DecryptSecrets(source interface{}) error

func (*Encryption) EncryptSecrets

func (e *Encryption) EncryptSecrets(source interface{}) error

Jump to

Keyboard shortcuts

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