mirror of
https://github.com/frida/frida-python.git
synced 2026-11-07 09:35:57 -10:00
Use bytes literals instead of encode method
This commit is contained in:
1 parent
c4785c3f7c
commit
32df9f05b2
1 file changed
+1
-1
@@ -80,7 +80,7 @@ class Application:
|
||||
raise ValueError("invalid request")
|
||||
|
||||
provided = hashlib.sha1(secret).digest()
|
||||
expected = hashlib.sha1("knock-knock".encode('utf-8')).digest()
|
||||
expected = hashlib.sha1(b"knock-knock").digest()
|
||||
if not hmac.compare_digest(provided, expected):
|
||||
raise ValueError("get outta here")
|
||||
|
||||
|
||||
Reference in new issue
Block a user