cipher

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// InputRegexp is defining the syntax of an s5 input variable.
	InputRegexp string = `{{\s?s5:([A-Za-z0-9+\\/=]*)\s?}}`
)

Variables

This section is empty.

Functions

func GenerateOutput

func GenerateOutput(value string) string

GenerateOutput return a ciphered string in a s5 format.

func NewAESClient

func NewAESClient(key string) (*aes.Client, error)

NewAESClient creates a AES client.

func NewAWSClient

func NewAWSClient(kmsKeyArn string) (*aws.Client, error)

NewAWSClient creates a AWS client.

func NewGCPClient

func NewGCPClient(kmsKeyName string) (*gcp.Client, error)

NewGCPClient creates a GCP client.

func NewPGPClient

func NewPGPClient(publicKeyPath, privateKeyPath string) (*pgp.Client, error)

NewPGPClient creates a PGP client.

func NewVaultClient

func NewVaultClient(key string) (*vault.Client, error)

NewVaultClient creates a Vault client.

func ParseInput

func ParseInput(value string) (string, error)

ParseInput retrieves ciphered value from a string in the s5 format.

Types

type Engine

type Engine interface {
	Cipher(value string) (string, error)
	Decipher(value string) (string, error)
}

Engine is an interface of supported/required commands for each cipher engine.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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