Skip to content

Instantly share code, notes, and snippets.

@zealic
Created February 7, 2019 12:08
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 zealic/635072c53efedd348e614c49ed154c13 to your computer and use it in GitHub Desktop.
Save zealic/635072c53efedd348e614c49ed154c13 to your computer and use it in GitHub Desktop.
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
Copy link

LnJlYm11TiBlbWlyUCB0c3JpZiBlbSB5bHBlciAscmVtbWFyZ29yUCByIHUgZkk=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment