Repository navigation
add encryption - #47
Merged
Merged
Conversation
wsargent
commented
Jan 8, 2026
Contributor
- Add design document for encryption feature
- feat: create blacklite-codec-encryption module structure
- feat: add EncryptionException with factory methods
- feat: add SymmetricEncryption strategy interface
- feat: implement AES-GCM-256 encryption with IV and authentication
- feat: add EncryptionMetadata model
- feat: add EncryptionMetadataRepository for SQLite storage
- feat: add RSA-OAEP key wrapping for symmetric keys
- feat: add EncryptionKeyStore for key lifecycle management
- feat: implement EncryptionCodec with codec wrapper pattern
- fix: add defensive copying for EncryptionMetadata byte array
- Per-database AES-GCM-256 encryption via codec wrapper pattern - Optional public key wrapping (RSA-OAEP) for symmetric keys - Transparent integration with ZStandard dictionary compression - Private key provider chain (API > env var > config > system property) - Fail-fast metadata validation on database open - Archive databases inherit encryption metadata - Reader tool support with clear error messages - Zero external dependencies (Java 8 standard library only) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Clone encryptedKey array in constructor to prevent external mutation - Clone encryptedKey array in getter to prevent caller mutation - Add test to verify defensive copying works correctly This prevents potential security issues where key material could be accidentally modified after construction or retrieval.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.