Documentation
¶
Overview ¶
Package encryption provides utilities for encrypting and decrypting arbitrary JSON-like data structures used in the git-calendar project.
It recursively walks maps and slices, encrypting leaf values using AES-SIV with additional authenticated data (AAD) derived from the field path. Encrypted values are base64-encoded strings.
Decryption performs the reverse operation, restoring the original data structure and value types via JSON unmarshaling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptFields ¶
DecryptField accepts a map[string]any, []any or pure string and returns a the same type with decrypted values using the key+aad. The encrypted text is expected to be base64 encoded. It works recursively.
Types ¶
This section is empty.