Question: Write Client-Server Python socket application that can be used to encrypt a file to be sent by a client and then to be decrypted on

Write Client-Server Python socket application that can be used to encrypt a file to be sent by a client and then to be decrypted on the receiver side. Use public-key cryptography.

1) The code need to import a file 'asn1.txt' and content inside file:

TSM-Fall2018-IPA---ID:xxxxxxxxx

2) Generate a set of public and private key. Hint: Use .pem file 3) Design the application to be efficient. 4) Your receiver should run the decryption script on the encrypted data received.

5) Match the asn1.txt with original to evaluate the result.

Sample output:

$ python encrypt.py

//TSM-Fall2018-IPA---id:xxxxxxxxx

//V\xfc&\xea\xb4Z\x13H3+\xb6\xda\xbcd\x1fnI;@\xb0'\x95\x99\xe1;@\xf2 x\x06\xcc\x9b\x91Zy\x0fw\xec=o\xefM\xc5)\x92\x9e\x17a\xd1\x02\x9a\xb5\x16\x00\x15{\xa8\x18\xc20\xea\x0f\x1a>jI\x1a\xd5;\xc1\xc4 \xe1?\x8cX\xcb\x1d\xd3\xa5\xcaq,\x14\x965\x03\xe1\xe9\xf8o\x99E*\x8bY'`n'Q\xc1%n\xff\xfc*\xa14[\x86\x0e\x90\xbb7\xe4w\xa42\xe9\xf13\xe3\x01z\xff\xc5\xff"

$python decrypt.py

//TSM-Fall2018-IPA---id:xxxxxxxxx

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!