Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncryptionService ¶
type EncryptionService interface {
// Encrypt encrypts plaintext using AES-GCM
Encrypt(plaintext string) (string, error)
// Decrypt decrypts ciphertext using AES-GCM
Decrypt(ciphertext string) (string, error)
// Hash creates a one-way hash of the input value using SHA-256
Hash(value string) string
}
EncryptionService defines the interface for encryption and hashing operations
func NewEncryptionService ¶
func NewEncryptionService(cfg *config.Configuration, logger *logger.Logger) (EncryptionService, error)
NewEncryptionService creates a new encryption service using the master key from config
Click to show internal directories.
Click to hide internal directories.