Merge pull request #68 from kokarare1212/deepsource-transform-9c2a7ab4
Format code with yapf
This commit is contained in:
commit
967986173b
|
@ -1111,7 +1111,11 @@ class Session(Closeable, MessageListener, SubListener):
|
|||
sha1 = SHA1.new()
|
||||
sha1.update(device_id.encode())
|
||||
secret = sha1.digest()
|
||||
base_key = PBKDF2(secret, username.encode(), 20, 0x100, hmac_hash_module=SHA1)
|
||||
base_key = PBKDF2(secret,
|
||||
username.encode(),
|
||||
20,
|
||||
0x100,
|
||||
hmac_hash_module=SHA1)
|
||||
sha1 = SHA1.new()
|
||||
sha1.update(base_key)
|
||||
key = sha1.digest() + b"\x00\x00\x00\x14"
|
||||
|
|
Loading…
Reference in New Issue