Documentation ¶
Index ¶
- type KeyStore
- func (k *KeyStore) Decrypt(ciphertext []byte) (string, error)
- func (k *KeyStore) Decrypter(r io.Reader) (*cipher.StreamReader, error)
- func (k *KeyStore) Delete(key string)
- func (k *KeyStore) Encrypt(plaintext string) ([]byte, error)
- func (k *KeyStore) Encrypter(w io.Writer) (*cipher.StreamWriter, error)
- func (k *KeyStore) Get(key string) (string, error)
- func (k *KeyStore) List() []string
- func (k *KeyStore) SaveKeyStore() error
- func (k *KeyStore) Set(key, val string) error
- func (k KeyStore) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyStore ¶
KeyStore represents the encrypted keystore.
func GetKeyStore ¶
GetKeyStore opens an already existing keystore.
func MakeKeyStore ¶
MakeKeyStore creates a new keystore.
func (*KeyStore) SaveKeyStore ¶
SaveKeyStore save the keystore to disk.
Click to show internal directories.
Click to hide internal directories.