Documentation
¶
Overview ¶
Package encrypt provides reversible AES-256-GCM encryption and decryption utilities for securing sensitive data like API keys and credentials. We are not using it anywhere yet - we will introduce encryption for all the sensitive data in one go to avoid breaking changes
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEncryptionKeyNotInitialized = errors.New("encryption key is not initialized")
Functions ¶
func CompareHash ¶ added in v1.1.20
CompareHash compares a hash and a password
func Decrypt ¶
Decrypt decrypts a base64-encoded ciphertext using AES-256-GCM and returns the plaintext
func Encrypt ¶
Encrypt encrypts a plaintext string using AES-256-GCM and returns a base64-encoded ciphertext
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.