spelling-quiz
This commit is contained in:
BIN
spelling_quiz/public.zip
Executable file
BIN
spelling_quiz/public.zip
Executable file
Binary file not shown.
27
spelling_quiz/public/encrypt.py
Executable file
27
spelling_quiz/public/encrypt.py
Executable 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)
|
||||||
1
spelling_quiz/public/flag.txt
Normal file
1
spelling_quiz/public/flag.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
brcfxba_vfr_mid_hosbrm_iprc_exa_hoav_vwcrm
|
||||||
1
spelling_quiz/public/flag.txt.old
Normal file
1
spelling_quiz/public/flag.txt.old
Normal file
@@ -0,0 +1 @@
|
|||||||
|
brcfxba_vfr_mid_hosbrm_iprc_exa_hoav_vwcrm
|
||||||
272543
spelling_quiz/public/study-guide.txt
Normal file
272543
spelling_quiz/public/study-guide.txt
Normal file
File diff suppressed because it is too large
Load Diff
272543
spelling_quiz/public/study-guide.txt.old
Normal file
272543
spelling_quiz/public/study-guide.txt.old
Normal file
File diff suppressed because it is too large
Load Diff
1
spelling_quiz/sol.txt
Normal file
1
spelling_quiz/sol.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
https://www.guballa.de/substitution-solver
|
||||||
Reference in New Issue
Block a user