Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cipher ¶
type Cipher interface {
Encrypt(plaintext []byte) (ciphertext []byte, err error)
Decrypt(ciphertext []byte) (plaintext []byte, err error)
}
A Cipher encrypts plaintext or decrypts ciphertext.
type CryptVal ¶
type CryptVal struct {
Plaintext []byte
// contains filtered or unexported fields
}
A CryptVal is used to encrypt values for storage in a database, and decrypts them, storing the plaintext in Plaintext.
func (*CryptVal) EncryptBytes ¶
EncryptBytes sets plaintext to be encrypted. Returns itself to support fluent syntax.
Click to show internal directories.
Click to hide internal directories.