Versions in this module Expand all Collapse all v0 v0.0.1 Sep 18, 2018 v0.0.0 Sep 17, 2018 Changes in this version + const AlgosKey + const BaseCryptoURL + const ItersKey + const KeyKey + const NonceKey + const SaltKey + const VersionKey + var StdinPassReader = func() ([]byte, error) + func DecBlobReader(in io.Reader, key []byte) (io.Reader, error) + func DecryptJSON(ciphertext string, key, nonce, salt []byte, val interface{}) (err error) + func EncBlobWriter(in io.Writer, key []byte) (io.WriteCloser, error) + func EncryptJSON(val interface{}, key, nonce, salt []byte) (ciphertext string, err error) + func GetPassSTDIN(prompt string, passReader func() ([]byte, error)) (_ string, err error) + func NewURLCompat(e *EnCrypto, opts *Opts) (u *url.URL, err error) + type Algos string + const None + const Pbkdf2Aes256Gcm + const Pbkdf2Iter + func ValidateAlgos(ctstr string) (Algos, error) + type Crypto struct + Algos Algos + Iters int + Nonce []byte + Salt []byte + Version int + type DeCrypto struct + DecKey []byte + func DecryptKey(e EnCrypto, opts *Opts) (d DeCrypto, err error) + func NewDecrypto(opts *Opts) (d *DeCrypto, err error) + type EnCrypto struct + EncKey []byte + func EncryptKey(d DeCrypto, opts *Opts) (e EnCrypto, err error) + func NewEncryptoCompat(urls []string, opts *Opts) (e EnCrypto, err error) + type Opts struct + Algos Algos + Compat bool + Iter int + Version int + func (o *Opts) GetPassphrase(passReader func() ([]byte, error)) (_ string, err error) + func (o *Opts) SetPassphrase(passphrase string)