mono-substitution
This commit is contained in:
13
app/app.py
13
app/app.py
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user