Documentation ¶
Overview ¶
Package encrypter contains data encryption implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCMEncrypter ¶
type GCMEncrypter struct {
// contains filtered or unexported fields
}
GCMEncrypter is an implementation of the Encrypter interface that uses the AES-GCM encryption algorithm.
func NewGCMEncrypter ¶
func NewGCMEncrypter(key string) (*GCMEncrypter, error)
NewGCMEncrypter creates a new instance of GCMEncrypter with the provided key. It initializes the AES-GCM cipher mode for encryption and decryption.
type NoopEncrypter ¶
type NoopEncrypter struct{}
NoopEncrypter is an implementation of the Encrypter interface that performs no actual encryption or decryption.
func NewNoopEncrypter ¶
func NewNoopEncrypter() *NoopEncrypter
NewNoopEncrypter creates a new instance of NoopEncrypter.
Click to show internal directories.
Click to hide internal directories.