29 lines
524 B
Markdown
29 lines
524 B
Markdown
# About
|
|
|
|
This is the Cryptography homework 3.
|
|
|
|
# Usage
|
|
|
|
## Installation
|
|
|
|
Please install `pycryptodome` using Python 3.10.
|
|
|
|
## Part 1
|
|
|
|
First run `alice.py` and input the message.
|
|
Run `bob.py` to decrypt the message.
|
|
|
|
## Part 2
|
|
|
|
Run `bob.py` to generate bob's public and private keys.
|
|
Run `alice.py` and enter a message.
|
|
Run `bob.py` to decrypt the message.
|
|
|
|
## Part 3
|
|
|
|
Run `speed-test.py` or speed-test-nokey.py`.
|
|
|
|
The difference between the two is that nokey doesn't generate a new key for each encryption and decryption.
|
|
|
|
|