Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GenerateKey ¶
GenerateKey generates a random 32-byte encryption key suitable for AES-256 This is a helper function for initial setup, not for production use
func GenerateKeyBase64 ¶
GenerateKeyBase64 generates a random 32-byte key and returns it base64-encoded
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides AES-256-GCM encryption/decryption for sensitive data
func NewService ¶
NewService creates a new encryption service with the provided 32-byte key
func NewServiceFromBase64 ¶
NewServiceFromBase64 creates a new encryption service from a base64-encoded key
Click to show internal directories.
Click to hide internal directories.