transit

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VaultEncryptor

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

VaultEncryptor implements Encryptor interface by using Vault transit

func NewVaultEncryptor

func NewVaultEncryptor(addr, token string) (*VaultEncryptor, error)

NewVaultEncryptor instantiate a vault encryption service

func (*VaultEncryptor) Decrypt

func (s *VaultEncryptor) Decrypt(ciphertext, appName string) (string, error)

Decrypt the given ciphertext and return the plaintext or an error

func (*VaultEncryptor) Encrypt

func (s *VaultEncryptor) Encrypt(plaintext, appName string) (string, error)

Encrypt the plaintext argument and return a ciphertext string or an error

Jump to

Keyboard shortcuts

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