Created
December 2, 2019 17:55
-
-
Save harshitm98/550275d7336328d74fb13c304756b576 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
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