Skip to content

Conversation

@KozlovDan
Copy link

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

  1. python main.py --gen - генерация ключей
  2. python main.py --enc - шифрование данных
  3. python main.py --dec - дешифрование:

@github-actions github-actions bot added In progress Код в процессе проверки Lab 3 Лабораторная 3 "Построение гибридной криптосистемы" labels Jun 2, 2025
lab3/main.py Outdated
Comment on lines 74 to 75
private_key = load_private_key('private.pem')
encrypted_sym_key = read_bytes_from_file('symmetric.key.enc')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

никаких захардкоженных путей/значений в коде быть не должно
вынести в файл с настройками

lab3/main.py Outdated
Comment on lines 104 to 112
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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

match/case

Copy link

@Daria-creator-lab Daria-creator-lab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

у вас сейчас 2 мейна, исправьте
image

@Daria-creator-lab Daria-creator-lab added Approved Код зачтен. Можно сдавать теорию. and removed In progress Код в процессе проверки labels Jun 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Approved Код зачтен. Можно сдавать теорию. Lab 3 Лабораторная 3 "Построение гибридной криптосистемы"

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants