Skip to content

Instantly share code, notes, and snippets.

@JackMc

JackMc/test.py Secret

Created September 20, 2016 20:49
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 JackMc/93d12701d7d9c40732e818a08cca230f to your computer and use it in GitHub Desktop.
Save JackMc/93d12701d7d9c40732e818a08cca230f to your computer and use it in GitHub Desktop.
from Crypto.Cipher import Blowfish
def extract_x(x):
'''Extract data from the 'x' value SCS gives us. (x is a bytestring)'''
scs_shared_key = 'notthekey'.encode('ascii')
scs_iv = '12345678'.encode('ascii')
cipher = Blowfish.new(scs_shared_key, Blowfish.MODE_CBC, scs_iv)
decrypted = cipher.decrypt(x).decode('utf-8')
print(decrypted)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment