mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-19 12:39:14 +00:00
Fix KDF metadata handling and headless password prompts
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import sys
|
||||
import json
|
||||
import base64
|
||||
from pathlib import Path
|
||||
from cryptography.fernet import Fernet
|
||||
|
||||
@@ -28,4 +30,5 @@ def test_parent_seed_migrates_from_fernet(tmp_path: Path) -> None:
|
||||
|
||||
assert new_file.exists()
|
||||
assert new_file.read_bytes() != encrypted
|
||||
assert new_file.read_bytes().startswith(b"V2:")
|
||||
payload = json.loads(new_file.read_text())
|
||||
assert base64.b64decode(payload["ct"]).startswith(b"V2:")
|
||||
|
Reference in New Issue
Block a user