Skip to content

Instantly share code, notes, and snippets.

@harshitm98
Created December 2, 2019 17:55
Show Gist options
  • Save harshitm98/550275d7336328d74fb13c304756b576 to your computer and use it in GitHub Desktop.
Save harshitm98/550275d7336328d74fb13c304756b576 to your computer and use it in GitHub Desktop.
import string
r = "\000dslp}oQ\000 dks$|M\000h +AYQg\000P*!M$gQ\000"
r = list(str(r))
r.reverse()
for i in range(len(r)):
if i % 8 == 0:
print("_", end="")
continue
for ch in string.printable:
final_ch = chr((ord(ch) >> (i % 8)) ^ ord(ch))
if final_ch == r[i]:
print(ch, end="")
print("")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment