-
Notifications
You must be signed in to change notification settings - Fork 74
6213 Козлов Д.А. Лаб.3 Вар.13 #244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
lab3/main.py
Outdated
| private_key = load_private_key('private.pem') | ||
| encrypted_sym_key = read_bytes_from_file('symmetric.key.enc') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
никаких захардкоженных путей/значений в коде быть не должно
вынести в файл с настройками
lab3/main.py
Outdated
| if args.gen: | ||
| generate_keys_mode(config) | ||
| elif args.enc: | ||
| encrypt_mode(config) | ||
| elif args.dec: | ||
| decrypt_mode(config) | ||
| else: | ||
| parser.print_help() | ||
| exit(1) No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
match/case
Daria-creator-lab
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

В данной лабораторной работе мне нужно было реализовать гибридную криптосистему, которая будет сочетать в себе преимущества симметричных и ассиметричных алгоритмов шифрования
Модули:
asymmetric_crypto.py - генерация RSA-ключей и операции с ними
symmetric_crypto.py - шифрование/дешифрование данных алгоритмом 3DES
file_utils.py - работа с файлами и конфигурацией
main.py - основной управляющий модуль
Чтобы запустить программу, необходимо ввести аргументы командной строки