Versions in this module Expand all Collapse all v1 v1.0.0 Sep 20, 2020 Changes in this version + var ErrKeyAlreadyExists = errors.New("Key with this name already exists.") + var ErrNoSuchKey = errors.New("No such key exists.") + var ErrShortCipher = errors.New("ciphertext too short.") + var ErrSrcNotBytes = errors.New("EncryptedString Scan src not a []byte.") + var ErrVersionMismatch = errors.New("version mismatch.") + func AddKey(name string, key []byte) error + type BlindIndexHash string + func (b BlindIndexHash) GetBase64() (string, error) + func (b BlindIndexHash) GetHash() ([]byte, error) + func (b BlindIndexHash) Value() (driver.Value, error) + type BlindIndexStrong string + type EncryptedString string + func (e *EncryptedString) Scan(src interface{}) error + func (e *EncryptedString) UnmarshalJSON(b64 []byte) error + func (e EncryptedString) Decrypt(ciphertext []byte) (string, error) + func (e EncryptedString) Encrypt() ([]byte, error) + func (e EncryptedString) MarshalJSON() ([]byte, error) + func (e EncryptedString) Value() (driver.Value, error)