Documentation
¶
Index ¶
- Constants
- Variables
- func ParseKey(b64 string) ([]byte, error)
- type Keyring
- func (k *Keyring) CurrentID() string
- func (k *Keyring) NeedsReseal(stored string) bool
- func (k *Keyring) Open(label, stored string) (string, error)
- func (k *Keyring) Reseal(label, stored string) (string, bool, error)
- func (k *Keyring) Seal(label, plaintext string) (string, error)
- func (k *Keyring) SetLegacyV1Key(key []byte) error
Constants ¶
View Source
const ( PrefixV1 = "enc:v1:" PrefixV2 = "enc:v2:" )
Variables ¶
Functions ¶
Types ¶
type Keyring ¶
type Keyring struct {
// AllowPlaintext lets Open return unsealed values unchanged. It exists only for migrating old rows; turn it off once every row is sealed.
AllowPlaintext bool
// contains filtered or unexported fields
}
func (*Keyring) NeedsReseal ¶
func (*Keyring) SetLegacyV1Key ¶
Click to show internal directories.
Click to hide internal directories.