-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
61 lines (46 loc) · 1.52 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import streamlit as st
from lab_01 import caesar
from lab_02 import rsa
from lab_03 import steganography
from lab_04 import huffman
from lab_05 import LFSR
# st.set_page_config(initial_sidebar_state="collapsed")
st.sidebar.image('logo.png', width=300)
def header():
author = """
made by [Kosarevsky Dmitry](https://github.com/dKosarevsky)
for [InfoSec](https://github.com/dKosarevsky/iu7/blob/master/8sem/infosec.md) labs
in [BMSTU](https://bmstu.ru)
"""
st.header("МГТУ им. Баумана. Кафедра ИУ7")
st.markdown("**Курс:** Защита информации")
st.markdown("**Преподаватель:** Кивва К.А.")
st.markdown("**Студент:** Косаревский Д.П.")
st.sidebar.markdown(author)
def main():
header()
lab = st.sidebar.radio(
"Выберите Лабораторную работу:", (
"1. Шифр Цезаря, Виженера.",
"2. Алгоритм шифрования RSA.",
"3. Стеганография.",
"4. Код Хаффмана.",
"5. РСЛОС.",
# "6. ______.",
),
index=4
)
if lab[:1] == "1":
caesar.main()
elif lab[:1] == "2":
rsa.main()
elif lab[:1] == "3":
steganography.main()
elif lab[:1] == "4":
huffman.main()
elif lab[:1] == "5":
LFSR.main()
# elif lab[:1] == "6":
# _____.main()
if __name__ == "__main__":
main()