Skip to content

Instantly share code, notes, and snippets.

@dz0ny

dz0ny/wsk.py Secret

Last active December 19, 2015 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dz0ny/af1de9acbd2fe7707bad to your computer and use it in GitHub Desktop.
Save dz0ny/af1de9acbd2fe7707bad to your computer and use it in GitHub Desktop.
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())
@dz0ny
Copy link
Author

dz0ny commented Jul 11, 2013

2.7.2 (default, Sep 14 2011, 04:10:57)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build)]
uhwt+Ez00hT84t87dCmTDwNYbR8=

@dz0ny
Copy link
Author

dz0ny commented Jul 11, 2013

2.7.4 (default, Apr 19 2013, 18:28:01)
[GCC 4.7.3]
Mk59VWhdqsZuGiBW5+++tdcZ6+Y=

@dz0ny
Copy link
Author

dz0ny commented Jul 11, 2013

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