mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-08 23:38:49 +00:00
Handle missing config manager for existing seed setup
This commit is contained in:
@@ -723,7 +723,11 @@ class PasswordManager:
|
|||||||
# Initialize EncryptionManager with key and fingerprint_dir
|
# Initialize EncryptionManager with key and fingerprint_dir
|
||||||
password = prompt_for_password()
|
password = prompt_for_password()
|
||||||
index_key = derive_index_key(parent_seed)
|
index_key = derive_index_key(parent_seed)
|
||||||
iterations = self.config_manager.get_kdf_iterations()
|
iterations = (
|
||||||
|
self.config_manager.get_kdf_iterations()
|
||||||
|
if getattr(self, "config_manager", None)
|
||||||
|
else 100_000
|
||||||
|
)
|
||||||
seed_key = derive_key_from_password(password, iterations=iterations)
|
seed_key = derive_key_from_password(password, iterations=iterations)
|
||||||
|
|
||||||
self.encryption_manager = EncryptionManager(
|
self.encryption_manager = EncryptionManager(
|
||||||
|
Reference in New Issue
Block a user