Created
September 15, 2020 18:25
-
-
Save dynax60/2e7231a78e1dd6a774e21eb23e88c204 to your computer and use it in GitHub Desktop.
Papa Johns promo code
This file contains hidden or 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
bits='000011100010110100011011000011100010111100101011000011100010111000011111000011100010111000101111000011100010111100011001000011100010111000101110000011100010111000011100000011100010111100011001000011100010111000011001000011100010111000101100000011100010111000101100000011100010111000100001000011100010111100011010000011100010111100011011' | |
_bytes = [ int(bits[k:k+8],2) for k in range(0, len(bits), 8)] | |
for i in range(0, len(_bytes), 3): | |
byte1, byte2 = _bytes[i+1:i+3] | |
c = ((byte1 & 0x0f) << 4) | (byte2-0x20 if byte2 > 0x22 else byte2-0x19) | |
print(c.to_bytes(1, byteorder='little').decode('cp1251'), end="") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment