crypt

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2018 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddKey

func AddKey(comment string)

func DecryptData

func DecryptData(secret *util.Secret, passphrase []byte) (util.AttributeMap, error)

func DeleteKey

func DeleteKey(id int)

func EncryptData

func EncryptData(attrs util.AttributeMap, passphrase []byte) (*util.Secret, error)

func GenerateKey

func GenerateKey(passphrase []byte) []byte

func GeneratePassword

func GeneratePassword(length int, symbols bool) string

func GetCipher

func GetCipher(passphrase, nonce []byte) ([]byte, cipher.AEAD)

func GetMasterKey

func GetMasterKey(confirm, getPassphrase, rotation bool) []byte

func GetPassphrase

func GetPassphrase(prompt string, confirm bool) ([]byte, error)

func GetSeal

func GetSeal() ([]byte, error)

func GetSealPath

func GetSealPath() string

func GetSecret

func GetSecret(path string) (*util.Secret, util.AttributeMap)

func GetSecretFile

func GetSecretFile(path string) (*util.Secret, error)

func GetVaultMeta

func GetVaultMeta(rotation bool) util.VaultMeta

func InitVault

func InitVault()

func IsUnsealed

func IsUnsealed() bool

func ListKeys

func ListKeys()

func RotateKey

func RotateKey()

func Seal

func Seal(rotation bool)

func SetSecret

func SetSecret(path string, attrs util.AttributeMap, generatorLength int, generatorSymbols, edit bool, editedAttrs []string, rotation bool)

func Unseal

func Unseal()

Types

This section is empty.

Jump to

Keyboard shortcuts

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