mirror of
https://github.com/RealityNet/kobackupdec.git
synced 2025-04-06 04:00:08 +08:00
fix for none working empty salt check
This commit is contained in:
parent
e7e67afa0a
commit
b0d1439adf
@ -266,8 +266,11 @@ class Decryptor:
|
||||
self._bkey_sha256 = SHA256.new(self._bkey).digest()[:16]
|
||||
logging.debug('SHA256(BKEY)[%s] = %s', len(self._bkey_sha256),
|
||||
binascii.hexlify(self._bkey_sha256))
|
||||
try:
|
||||
salt = self._checkMsg[32:]
|
||||
except:
|
||||
salt = None # or False whatever you want
|
||||
|
||||
salt = self._checkMsg[32:]
|
||||
if salt:
|
||||
logging.debug('SALT[%s] = %s', len(salt), binascii.hexlify(salt))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user