Skip to content

feat: Add support for nested struct and slice encryption/decryption with path-based key prefixing#5

Merged
iBakuman merged 1 commit intomainfrom
support-nested
Jan 15, 2026
Merged

feat: Add support for nested struct and slice encryption/decryption with path-based key prefixing#5
iBakuman merged 1 commit intomainfrom
support-nested

Conversation

@iBakuman
Copy link
Copy Markdown
Contributor

  • Refactor processStruct to processStructWithPrefix to handle nested encryption with path prefixes
  • Add processNestedField to recursively process nested structs and slices/arrays of structs
  • Introduce prefixKey helper function to create hierarchical keys for nested fields
  • Update encryptJSONField and decryptJSONField to support key-based operations
  • Add decryptRegularFieldByKey, encryptJSONFieldByKey, and decrypt

…th-based key prefixing

- Refactor processStruct to processStructWithPrefix to handle nested encryption with path prefixes
- Add processNestedField to recursively process nested structs and slices/arrays of structs
- Introduce prefixKey helper function to create hierarchical keys for nested fields
- Update encryptJSONField and decryptJSONField to support key-based operations
- Add decryptRegularFieldByKey, encryptJSONFieldByKey, and decrypt
@iBakuman iBakuman merged commit acdae69 into main Jan 15, 2026
2 checks passed
@iBakuman iBakuman deleted the support-nested branch January 15, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants