testencryptor

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: May 26, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Original    encryptor.Service
	TesSecret   func() []byte
	TestEncrypt func(value string) (string, error)
	TestDecrypt func(encrypted string) (string, error)
}

func New

func New(service encryptor.Service) *Service

func (Service) Decrypt

func (t Service) Decrypt(encrypted string) (string, error)

func (Service) DecryptAll

func (t Service) DecryptAll(encrypted ...string) ([]string, error)

func (Service) Encrypt

func (t Service) Encrypt(value string) (string, error)

func (Service) Secret

func (t Service) Secret() []byte

Jump to

Keyboard shortcuts

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