Vigenere
This commit is contained in:
18
app/app.py
18
app/app.py
@@ -182,6 +182,15 @@ def auswahl_verarbeiten():
|
||||
elif auswahl == "T9-EN dekodieren":
|
||||
st.session_state.output_text = tools.t9_en(text)
|
||||
st.session_state.map_data = None
|
||||
elif auswahl == "Vigenere-Chiffre":
|
||||
st.session_state.output_text = tools.vigenere(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
|
||||
elif auswahl == "REPLACE":
|
||||
st.session_state.output_text = tools.REPLACE(text)
|
||||
st.session_state.map_data = None
|
||||
elif auswahl == "REPLACE":
|
||||
st.session_state.output_text = tools.REPLACE(text)
|
||||
st.session_state.map_data = None
|
||||
@@ -260,6 +269,8 @@ option = st.sidebar.radio("hidden_label",
|
||||
"Re-Morse-EN",
|
||||
"T9-DE dekodieren",
|
||||
"T9-EN dekodieren",
|
||||
"Vigenere-Chiffre",
|
||||
"",
|
||||
"",
|
||||
"Dummy mit Karte",
|
||||
),
|
||||
@@ -275,13 +286,16 @@ if option == "Dummy mit Karte":
|
||||
"Optionaler Zusatztext für Dummy mit Karte",
|
||||
placeholder="Zusätzliche Eingabe hier"
|
||||
)
|
||||
|
||||
elif option == "Vigenere-Chiffre":
|
||||
additional_parameter = st.text_input(
|
||||
"Schlüsselwort:",
|
||||
placeholder="Schlüsselwort hier eingeben"
|
||||
)
|
||||
# Button zum manuellen Ausführen der Verarbeitungsfunktion
|
||||
if st.button(f"{st.session_state.option}"):
|
||||
auswahl_verarbeiten()
|
||||
|
||||
# Ausgabefeld
|
||||
st.markdown('__Ausgabe:__')
|
||||
st.markdown(st.session_state.output_text)
|
||||
|
||||
# Karte anzeigen, falls aktiviert
|
||||
|
||||
Reference in New Issue
Block a user