Question: Needed in python. Write a python program Alice.py that implements the following: 1. Alice generates a 2048-bit private and public key. 2. Alice negotiates a
Needed in python.
Write a python program Alice.py that implements the following:
1. Alice generates a 2048-bit private and public key.
2. Alice negotiates a shared key (Ks) using Diffie-Hellman protocol with p = 23 and g =17.
3. Alice performs steps 4 to 7.
4. Alice hashes the message: To prevent the spread of germs, you should wash your hands with soap and water for at least 20 seconds or use a hand sanitizer with at least 60% alcohol to clean hands.
5. The private key is used to encrypt the hash of the message with RSA.
6. Alice's public key is encrypted using the DES/AES algorithm. The secret DES/AES key (Ks) used is from step 2.
7. The private key is saved to a file called privatekey.dat while the public key to publickey.dat.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
