encryptor

package
v1.41.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecryptionResponse

type DecryptionResponse struct {
	DecryptedSecret string `json:"decryptedSecret"`
}

type EncryptionResponse

type EncryptionResponse struct {
	EncryptedSecret string `json:"encryptedSecret"`
}

type Encryptor

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

func NewEncryptor

func NewEncryptor(decryptionURL string, encryptionURL string, enabled bool, timeout time.Duration, audience string) (Encryptor, error)

func (Encryptor) Decrypt

func (e Encryptor) Decrypt(input string, headers map[string]string) (string, error)

func (Encryptor) Enabled

func (e Encryptor) Enabled() bool

func (Encryptor) Encrypt

func (e Encryptor) Encrypt(input string, headers map[string]string) (string, error)

type Secret

type Secret struct {
	Secret string `json:"secret"`
}

Jump to

Keyboard shortcuts

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