Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EncryptionKey = []byte("authsome-notification-key-32b") // Must be 32 bytes for AES-256
EncryptionKey is the encryption key for provider credentials In production, this should be loaded from environment variables or a key management service.
Functions ¶
func DecryptConfig ¶
DecryptConfig decrypts a provider configuration map.
func EncryptConfig ¶
EncryptConfig encrypts a provider configuration map.
func GenerateEncryptionKey ¶
GenerateEncryptionKey generates a new random encryption key.
func SetEncryptionKey ¶
SetEncryptionKey sets a custom encryption key This should be called at application startup with a key from environment.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.