Repository navigation
3.0 phase 1a: account cryptography (no app change) - #13
Merged
Merged
Conversation
account_crypto.py holds the PassMan 3.0 key design (E:\CLAUDE\PassMan\ DESIGN-3.0.md): Argon2id (cryptography>=44, or argon2-cffi = Ubuntu's python3-argon2) + a 128-bit Secret Key -> HKDF -> Account Unlock Key and a separate Login Key; a keyset sealed with AES-GCM under an authenticated header; X25519 sealed-box wrapping of vault keys bound to vault id + member; fingerprints; the PMV3 vault container; the 12-word BIP39 recovery phrase (official word list, hash-checked); create / unlock / recover / reseal. Pure functions, no files, nothing in the 2.x app calls them, so 2.x behaviour is unchanged and there is no version bump. Tests pin the RFC 9106 Argon2id vector and the BIP39 reference vectors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011ojnyVg7ccsR3pZ64s7aRH
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.
3.0 phase 1a: account cryptography
The first piece of PassMan 3.0 (design:
E:\CLAUDE\PassMan\DESIGN-3.0.md; owner answers 2026-11-08). It adds a pure module; nothing in the 2.x app calls it, so behaviour is unchanged and there's no version bump. Phase 1b (the local account screens, PMV3 files, importing a 2.x vault) builds on it.account_crypto.py:cryptography≥ 44, or argon2-cffi, which is Ubuntu'spython3-argon2.A3-XXXXX-XXXXX-XXXXX-XXXXXX-XXXXXXwith a check character, so a typo reads as a typo rather than a wrong password.bip39_words.pyand its SHA-256 is checked). Unknown words are named with their position; swapped words are caught by the checksum.Dependencies:
cryptography>=44(Windows),argon2-cffiin requirements-dev (so CI checks the two Argon2id libraries agree). Linux:python3-argon2added to the .deb Depends and to requirements.txt; README updated.Tests (
tests/test_account_crypto.py, 51)🤖 Generated with Claude Code
https://claude.ai/code/session_011ojnyVg7ccsR3pZ64s7aRH