Documentation ¶
Index ¶
- func Decrypt(blob []byte, key []byte, scheme string) ([]byte, error)
- func Encrypt(blob []byte, key []byte, scheme string) ([]byte, error)
- func KeyForAES(key []byte) []byte
- func MD5(content []byte) string
- type AESBlock
- type Cipher
- type DataBlob
- type Dory
- func (dory *Dory) Del() (err error)
- func (dory *Dory) FetchSecret() (value []byte, err error)
- func (dory *Dory) Get() (err error)
- func (dory *Dory) List() (err error)
- func (dory *Dory) Ping() (err error)
- func (dory *Dory) PurgeAll() (err error)
- func (dory *Dory) PurgeSecret() (err error)
- func (dory *Dory) RefreshSecret() (value []byte, err error)
- func (dory *Dory) Set() (err error)
- func (dory *Dory) ShareSecret(value []byte) (err error)
- func (dory *Dory) ShareSecretFromFile(filepath string) (err error)
- type Key
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dory ¶
type Dory struct { BaseUrl string Backend string //local-auth Key string Value []byte Token string KeyTTL int //seconds, usable in cache mode only i.e. when persist is false Persist bool ReadNotDelete bool }
func (*Dory) FetchSecret ¶
func (*Dory) PurgeSecret ¶
func (*Dory) RefreshSecret ¶
func (*Dory) ShareSecret ¶
func (*Dory) ShareSecretFromFile ¶
Click to show internal directories.
Click to hide internal directories.