From be40688f97fa7f94055fadf6518f347b91f30d44 Mon Sep 17 00:00:00 2001 From: louisabraham Date: Wed, 3 Apr 2019 00:58:45 +0200 Subject: [PATCH] version 0.4.5 add a message when the database is broken follows the discussion in #6 --- ffpass/__init__.py | 4 +++- setup.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ffpass/__init__.py b/ffpass/__init__.py index f1db1c2..ddba1c0 100644 --- a/ffpass/__init__.py +++ b/ffpass/__init__.py @@ -86,7 +86,9 @@ def getKey(directory: Path, masterPassword=""): if row[1] == MAGIC1: break a11 = row[0] # CKA_VALUE - assert row[1] == MAGIC1 # CKA_ID + assert ( + row[1] == MAGIC1 + ), "The Firefox database appears to be broken. Try to add a password to rebuild it." # CKA_ID decodedA11, _ = der_decode(a11) entrySalt = decodedA11[0][1][0].asOctets() cipherT = decodedA11[1].asOctets() diff --git a/setup.py b/setup.py index f5fcbb8..6893fa7 100755 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ def read(fname): setup( name="ffpass", - version="0.4.4", + version="0.4.5", author="Louis Abraham", license="MIT", author_email="louis.abraham@yahoo.fr", -- 2.52.0