encryption

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AESEncryptionMiddleware

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

func (*AESEncryptionMiddleware) Decrypt

func (e *AESEncryptionMiddleware) Decrypt(ciphertext []byte) ([]byte, error)

func (*AESEncryptionMiddleware) Encrypt

func (e *AESEncryptionMiddleware) Encrypt(bytes []byte) ([]byte, error)

type EncryptionMiddleware

type EncryptionMiddleware interface {
	Encrypt(bytes []byte) ([]byte, error)
	Decrypt(ciphertext []byte) ([]byte, error)
}

func NewAESEncryptionMiddleware

func NewAESEncryptionMiddleware(aesKey [32]byte) EncryptionMiddleware

Jump to

Keyboard shortcuts

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