mono-substitution

This commit is contained in:
2025-07-25 12:27:46 +02:00
parent 49ce093529
commit 3a6530bd54
2 changed files with 51 additions and 43 deletions

View File

@@ -194,6 +194,9 @@ def auswahl_verarbeiten():
elif auswahl == "Wolseley-Chiffre":
st.session_state.output_text = tools.wolseley(text, additional_parameter)
st.session_state.map_data = None
elif auswahl == "Mono.-Substitution":
st.session_state.output_text = tools.monoalphasubstitution(text, additional_parameter)
st.session_state.map_data = None
elif auswahl == "REPLACE":
st.session_state.output_text = tools.REPLACE(text)
st.session_state.map_data = None
@@ -282,6 +285,11 @@ option = st.sidebar.radio("hidden_label",
"T9-EN dekodieren",
"Vigenere-Chiffre",
"Wolseley-Chiffre",
"Mono.-Substitution",
"",
"",
"",
"",
"",
"Dummy mit Karte",
),
@@ -302,6 +310,11 @@ elif option in ["Vigenere-Chiffre", "Wolseley-Chiffre"]:
"Schlüsselwort:",
placeholder="Schlüsselwort hier eingeben"
)
elif option in ["Mono.-Substitution"]:
additional_parameter = st.text_input(
"Schlüsselwort/Schlüsselalphabet:",
placeholder="Schlüsselwort/Schlüsselalphabet hier eingeben"
)
# Button zum manuellen Ausführen der Verarbeitungsfunktion
if st.button(f"{st.session_state.option}"):
auswahl_verarbeiten()