Versions in this module Expand all Collapse all v0 v0.8.1 Jul 12, 2016 Changes in this version + var BackendPath = path.Join(home, ".cryptag", "backends") + var DefaultLocalDataPath = path.Join(home, ".cryptag") + var ErrDecrypt = fmt.Errorf("Error decrypting ciphertext") + var ErrDecryptEmpty = fmt.Errorf("Error decrypting empty ciphertext") + var ErrInvalidKey = fmt.Errorf("Invalid key") + var ErrInvalidNonce = fmt.Errorf("Invalid nonce") + var ErrNilKey = fmt.Errorf("Nil key") + var ErrNilNonce = fmt.Errorf("Nil nonce") + var LocalDataPath = DefaultLocalDataPath + var TrustedBasePath = path.Join(home, ".cryptag") + var UseTor = false + func ConvertKey(key []byte) (goodKey *[32]byte, err error) + func ConvertNonce(nonce []byte) (goodNonce *[24]byte, err error) + func Decrypt(cipher []byte, nonce *[24]byte, key *[32]byte) ([]byte, error) + func Encrypt(plain []byte, nonce *[24]byte, key *[32]byte) ([]byte, error) + func Now() time.Time + func NowStr() string + func RandomKey() (*[32]byte, error) + func RandomNonce() (*[24]byte, error) + func TimeStr(t time.Time) string + func UnconvertKey(goodKey *[32]byte) ([]byte, error) + type CanUseTor interface + UseTor func() error + type PlainTags []string + type RandomTags []string