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 a simple AES block cipher. This approach works well for large, generated values that have a high probability of being unique. For more common values, take a look at the aesgcm.Serializer implementation.
func New ¶
func New(key []byte) *Serializer
New constructs a new Serializer using the provided key and computes a fingerprint for the key.
Click to show internal directories.
Click to hide internal directories.