Fix decryption migration logic

This commit is contained in:
thePR0M3TH3AN
2025-07-13 10:22:43 -04:00
parent c27eec26e2
commit 2f143b6710
4 changed files with 142 additions and 396 deletions

View File

@@ -51,7 +51,7 @@ def test_round_trip(monkeypatch):
assert vault.load_index()["pw"] == data["pw"]
from cryptography.exceptions import InvalidTag
from cryptography.fernet import InvalidToken
def test_corruption_detection(monkeypatch):
@@ -68,7 +68,7 @@ def test_corruption_detection(monkeypatch):
content["payload"] = base64.b64encode(payload).decode()
path.write_text(json.dumps(content))
with pytest.raises(InvalidTag):
with pytest.raises(InvalidToken):
import_backup(vault, backup, path, parent_seed=SEED)