Storage/v5 - #2
Open
justpresident wants to merge 12 commits into
Open
justpresident wants to merge 12 commits into
justpresident wants to merge 12 commits into
Conversation
Remove the requirement of a secret folder that pretends to be a simple key. This doesn't make sense for an opensource tool. If the attack vector includes stolen master password, then it the code can be recompiled to behave as one wants
justpresident
force-pushed
the
storage/v5
branch
from
December 30, 2025 14:48
f74afca to
5ff960b
Compare
This is to be used for storing different Cyphers for different encryption domains
1. Added encryption_domains field:
- HashMap<u32, String> mapping domain_id → domain_name
- Automatically serialized/deserialized with bincode
- Initialized with master domain (id=0, name="master") in new()
2. Domain management methods:
- create_encryption_domain(name) - creates new domain, returns ID
- get_domain_name(domain_id) - gets domain name by ID
- encryption_domains_iter() - iterates all domains
This is required to make sure that unencrypted content of unlocked encrypted folder is not written to disk. The implementation just skips the decrypted_folder field
justpresident
force-pushed
the
storage/v5
branch
from
January 4, 2026 22:40
1c689db to
6730a31
Compare
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.
Implement a new storage format to support new functionality: