Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Serializer ¶
type Serializer struct {
// contains filtered or unexported fields
}
Serializer provides a Gorm Serializer capable of encrypting and decrypting database fields using an AES+GCM cipher. The same encryption key can be used for multiple values in an attempt to optimize performance.
func (*Serializer) Get ¶
func (s *Serializer) Get(fingerprint string) (*database.Key, error)
Get implements loading logic that pulls encryption keys from the database and caches them in memory to improve performance of decrypting field values.
Click to show internal directories.
Click to hide internal directories.