From 0af5f10f1411c38d7c2df3c61846cecd6702a274 Mon Sep 17 00:00:00 2001 From: Gurgen Date: Fri, 28 Sep 2018 16:42:48 +0300 Subject: [PATCH] decrypt_with_key (see traceback) File "libs\lazagne\config\dpapi_structure.py", line 164, in __init__ File "libs\lazagne\config\DPAPI\masterkey.py", line 432, in try_system_credential File "libs\lazagne\config\DPAPI\masterkey.py", line 83, in decrypt_with_key File "libs\lazagne\config\DPAPI\crypto.py", line 333, in dataDecrypt File "libs\lazagne\config\DPAPI\crypto.py", line 313, in pbkdf2 File "libs\hmac.py", line 136, in new File "libs\hmac.py", line 71, in __init__ TypeError: object of type 'NoneType' has no len() --- Windows/lazagne/config/DPAPI/masterkey.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Windows/lazagne/config/DPAPI/masterkey.py b/Windows/lazagne/config/DPAPI/masterkey.py index fd280d3b..a57dbe18 100755 --- a/Windows/lazagne/config/DPAPI/masterkey.py +++ b/Windows/lazagne/config/DPAPI/masterkey.py @@ -75,7 +75,7 @@ def decrypt_with_key(self, pwdhash): This function also extracts the HMAC part of the decrypted stuff and compare it with the computed one. Note that, once successfully decrypted, the masterkey will not be decrypted anymore; this function will simply return. """ - if self.decrypted: + if self.decrypted or not pwdhash: return # Compute encryption key