spelling-quiz

This commit is contained in:
Maxime Vorwerk
2024-07-08 16:49:12 +02:00
parent 7cd45f9bbe
commit e96f171871
7 changed files with 545116 additions and 0 deletions

BIN
spelling_quiz/public.zip Executable file

Binary file not shown.

27
spelling_quiz/public/encrypt.py Executable file
View File

@@ -0,0 +1,27 @@
#!/home/maxime/.pyvenv/bin/python3
import random
import os
files = [
os.path.join(path, file)
for path, dirs, files in os.walk('.')
for file in files
if file.split('.')[-1] == 'txt'
]
print(files)
alphabet = list('abcdefghijklmnopqrstuvwxyz')
random.shuffle(shuffled := alphabet[:])
dictionary = dict(zip(alphabet, shuffled))
print(dictionary)
for filename in files:
text = open(filename, 'r').read()
encrypted = ''.join([
dictionary[c]
if c in dictionary else c
for c in text
])
#open(filename, 'w').write(encrypted)

View File

@@ -0,0 +1 @@
brcfxba_vfr_mid_hosbrm_iprc_exa_hoav_vwcrm

View File

@@ -0,0 +1 @@
brcfxba_vfr_mid_hosbrm_iprc_exa_hoav_vwcrm

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

1
spelling_quiz/sol.txt Normal file
View File

@@ -0,0 +1 @@
https://www.guballa.de/substitution-solver