Skip to content

Instantly share code, notes, and snippets.

@zealic zealic/decode.py
Created Feb 7, 2019

Embed
What would you like to do?
raw.txt
import sys
import base64
text = sys.stdin.read()
data = base64.b64decode(text)
decrypted = ""
for i in range(len(data)):
decrypted += chr(ord(data[i]) >> 1)
print(decrypted)
import sys
import base64
text = sys.stdin.read()
encrypted = ""
for i in range(len(text)):
encrypted += chr(ord(text[i]) << 1)
print(base64.b64encode(encrypted))
If u r Programmer, reply me BitOp count.
import base64
print(base64.b64encode('If u r Programmer, reply me first Prime Number.'[::-1]))
@charlesgongC

This comment has been minimized.

Copy link

charlesgongC commented Jul 25, 2019

LnJlYm11TiBlbWlyUCB0c3JpZiBlbSB5bHBlciAscmVtbWFyZ29yUCByIHUgZkk=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.