Question: Hello, can you please help me with lab in my cryptography class. It's in Java. Your help will mean a lot to me . In

Hello, can you please help me with lab in my cryptography class. It's in Java. Your help will mean a lot to me.
In this lab, we are testing the use of RSA encryption and decryption.
(1) Generating private and public keys that allow one to choose RSA key length: 1024,2048,3072
(2) Encrypting and decrypting that supports different padding modes (either PKCS or OAEP) for both keyboard input /screen output and file input/output.
Note that you are strongly recommended to use separate classes for each of above two tasks.
(3) In your main method (you should use a separate class) you should generate a pair of private and public key based on user's choice of key length and store them in files. Then you should have code to ask user to select padding mode, encrypt both keyboard input and file input, and then decrypt them. Check whether the decrypted content matches the original plaintext or not.
What to submit: You complete codes.

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 Programming Questions!