Skip to content
Snippets Groups Projects
Commit d4e5d494 authored by Hugo Hörnquist's avatar Hugo Hörnquist
Browse files

Add basic encoder and decoder.

parent 4374159d
No related branches found
No related tags found
No related merge requests found
do.py 0 → 100644
import requests
alphabet = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!"#$%&\'()*+,-./:;<=>?@[\\]^_`|~ \n'
def decode(msg):
return ''.join(alphabet[ord(c) - 33] for c in msg)
def encode(str):
return ''.join(chr(alphabet.index(c) + 33) for c in str)
def run():
response = requests.post('https://boundvariable.space/communicate', headers={
'Authorization': 'Bearer 8cd1314b-f873-4ab7-891f-781d814ed60e',
'User-Agent': 'Närke Nation',
},
data='',
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment