From: louisabraham Date: Tue, 2 Apr 2019 22:58:45 +0000 (+0200) Subject: version 0.4.5 X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=be40688f97fa7f94055fadf6518f347b91f30d44;p=gamesguru%2Fffpass.git version 0.4.5 add a message when the database is broken follows the discussion in #6 --- 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",