This commit is contained in:
Maxime Vorwerk
2024-07-24 22:26:10 +02:00
parent 6a3e260b3d
commit 3d2bc97bb7
3 changed files with 36 additions and 0 deletions

16
c3/convert.py Executable file
View File

@@ -0,0 +1,16 @@
#!/home/maxime/.pyvenv/bin/python3
import sys
chars = "test"
lookup1 = "\n \"#()*+/1:=[]abcdefghijklmnopqrstuvwxyz"
lookup2 = "ABCDEFGHIJKLMNOPQRSTabcdefghijklmnopqrst"
out = ""
prev = 0
for char in chars:
cur = lookup1.index(char)
out += lookup2[(cur - prev) % 40]
prev = cur
sys.stdout.write(out)