Skip to content

Instantly share code, notes, and snippets.

@chemputer
Created November 6, 2020 21:23
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 chemputer/a058cc90aaf8af2d34123f807531b514 to your computer and use it in GitHub Desktop.
Save chemputer/a058cc90aaf8af2d34123f807531b514 to your computer and use it in GitHub Desktop.
Convert Binary To ASCII For Teamspeak Puzzle

Solution to the Teamspeak Puzzle Programatically

Teamspeak published a challenge on Twitter here and it included this image.

b = int(b'010101100101001001001010001101010011010000110010010101010011010101001000001100010101000101010100010001010100110101010100010001000101010000110100010110100100100001010101010001110100001101000111001110000100011101000001010001100101011101010000010100100100000101010100010011100011000001011000010011010100011000110010010101010101101001010100001100100101011101010011010010100011000101010000010010100011000001000110010100000101100101010111010100010101011001000101001100000101011100110100010101000100001100110100010101100100010101001110010110000100010101011000010110000011010001000011010001100100011100110111010001100011010001000001010101110101011001010110001101110100110000110100010100110011010100110100010011100101100101000010010011100101001101010000010000010100011001010101001100110101101001010000010011100101000001011001010100100101011001011001010010110100011101001000010000010011100101011001010101110101100100110010010001000011001101010100001100000011001100110010001100110101001000111001010010110100010101010010010001110100011101000010010010110101010001001000010001110101100101001000001100100100101001001000001100100101011101000100010010000011011001000110010010100100001101010001010100010011001101001010010100110101100001001100010001010101011001001010010001000100110101001000010000100101011001001100001100000100010001000011001110000101001001010000010101000101010101000100001101100101000101000011010100000100001001001000010001010011000101000111010101110011001101010100010100010100110000110111001100000011011000110011010100010101100101000001010011000100111000111001010011000101010001000001010001100101100001011010010001100100101001011000010000010100111001010101010110010011100101000111010100010011100001010111010001010101011001001100010101010100101101010111001110010100011001000111010110010011011001000011010011000100101001000011010001000101000101000110001101110011001100110001010010100011011101000100010010110101100001001000',2)
print([''.join(x) for x in zip(*[iter(b.to_bytes((b.bit_length()+7) // 8, 'big').decode())]*10)])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment