-
-
Save dz0ny/af1de9acbd2fe7707bad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from base64 import b64encode | |
try: | |
from hashlib import sha1 | |
except: | |
from sha import sha as sha1 | |
key = 'NNbMW77w5whNYsE79PJRhA==' | |
magic = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11' | |
print(sys.version) | |
print(sha1(key.encode('utf-8') + magic.encode('utf-8')).hexdigest()) | |
print(sha1(key + magic).hexdigest()) |
2.7.4 (default, Apr 19 2013, 18:28:01)
[GCC 4.7.3]
Mk59VWhdqsZuGiBW5+++tdcZ6+Y=
3.3.1 (default, Apr 17 2013, 22:30:32)
[GCC 4.7.3]
b'Mk59VWhdqsZuGiBW5+++tdcZ6+Y='
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
2.7.2 (default, Sep 14 2011, 04:10:57)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build)]
uhwt+Ez00hT84t87dCmTDwNYbR8=