Documentation ¶
Overview ¶
Package password adds password support for go-config-yourself
It encrypts values with a key derived from a user-defined password. The values are encrypted using AES in GCM mode.
Index ¶
- func New(config map[string]interface{}) (pvd.Crypto, error)
- type Provider
- func (provider *Provider) Decrypt(data []byte) (plainText string, err error)
- func (provider *Provider) Enabled() bool
- func (provider *Provider) Encrypt(plainText []byte) (cipherText []byte, err error)
- func (provider *Provider) Replace(args map[string]interface{}) (err error)
- func (provider *Provider) Serialize() (serialized map[string]interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements provider.Crypto for passwords
Click to show internal directories.
Click to hide internal directories.