Skip to content

Commit

Permalink
Update btcrpass.py
Browse files Browse the repository at this point in the history
  • Loading branch information
3rdIteration committed Jan 8, 2024
1 parent 3abc871 commit 5efa259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion btcrecover/btcrpass.py
Original file line number Diff line number Diff line change
Expand Up @@ -2033,7 +2033,7 @@ def decrypt_old(self, password, salt_and_iv, data):
padding = 17 - len(last_block) # ISO 7816-4 padding length
return decrypted[:-padding] if 1 <= padding <= 16 and \
decrypted[-padding] == b"\x80" and \
re.match('{\s*"guid"',decrypted.decode()) else None
re.match(self.matchStrings,decrypted.decode()) else None

def decrypt_wallet(self,password):
from lib.cashaddress import base58
Expand Down

0 comments on commit 5efa259

Please sign in to comment.