-
-
Save JackMc/93d12701d7d9c40732e818a08cca230f 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
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