Program to attack the textbook rsa encryption scheme

Program to attack the textbook rsa encryption scheme/Software Engineering

Question 1

Write a program to attack the Textbook RSA Encryption Scheme in order to decrypt the encrypted file key_enc.txt which contains the 128 bits AES secret key together with the initialisation vector (IV) for Question 2. You must explain and show how the attack is done.

The RSA parameters are as follows:

N:
92001629535369949668182190680140710002429961412439471184834723194899969898404162
82428855806975402440064473888135838545187330646754494062187654035542047167435016
34608863342073173012508616123265965429721791336874605919036975439595316606713189
21259313523852555003517715050369476348174980850810194157624985747443

e: 65537

The RSA.class will read in the ciphertext stored inside key_enc.txt and decrypt it to the original plaintext. When you run the class file, make sure it is placed in the same directory with the text file.

If you get java.lang.UnsupportedClassVersionError, update your jre and jdk to the latest version. Also, make sure you run the class file with the -Dfile.encoding=UTF-8 parameter.

Question 2

Decrypt the file Q2_encrypted with AES in CBC mode with PKCS5 padding scheme. Explain how to execute the decrypted file.

Attachment:- Assignment.zip

Order from us and get better grades. We are the service you have been looking for.