Documentation ¶
Index ¶
- type Entry
- type EntryType
- type SCryptStrength
- type Vault
- func (v *Vault) GetBytes(key string) ([]byte, error)
- func (v *Vault) GetString(key string) (string, error)
- func (v *Vault) List() []*Entry
- func (v *Vault) Rekey(newPassphrase string, strength SCryptStrength) error
- func (v *Vault) Remove(key string)
- func (v *Vault) Save() error
- func (v *Vault) SetBytes(key string, value []byte)
- func (v *Vault) SetString(key string, value string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SCryptStrength ¶
type SCryptStrength int
SCryptStrength represents the N, r, p values for scrypt. Read more: http://www.tarsnap.com/scrypt/scrypt-slides.pdf
const ( // SCryptInteractive is suitiable for interactive use (<100ms) [N:2^14, r:8, p:1] SCryptInteractive SCryptStrength = 0 // SCryptSensitive is suitiable for sensitive long-term storage (<100ms) [N:2^20, r:8, p:1] SCryptSensitive SCryptStrength = 1 )
type Vault ¶
type Vault struct {
// contains filtered or unexported fields
}
Vault is an encrypted store of key/value pairs
func (*Vault) GetBytes ¶
GetBytes returns the []byte value for the given key and a found/not-found indicator
func (*Vault) GetString ¶
GetString returns the string value for the given key and a found/not-found indicator
Click to show internal directories.
Click to hide internal directories.