Question: Please do this problem in C programming language: deskey.txt content: 0f1571c947d9e859 You need to develop 2 C programs DES ECB Enc.c and DES ECB Dec.c

Please do this problem in C programming language:

Please do this problem in C programming language: deskey.txt content: 0f1571c947d9e859 You

deskey.txt content:

0f1571c947d9e859 

You need to develop 2 C programs "DES ECB Enc.c" and "DES ECB Dec.c" that use the ECB mode DES cipher in OpenSSL to encrypt or decrypt a given file (of arbitrary length) into another encrypted or the decrypted file with any given encryption key and IV. Specifically, the programs need to support the following commands line arguments and usage: DES_ECB_Enc -k -i -o DES_ECB_Dec -k -i -o where contains the 32-byte encryption key in hex format; contains the 8-byte IV in hex format; is the name of the input file (e.g., plaintext or cipertext); is the name of the output file (e.g., cipher text or plaintext). Note: and are text files, input file> could be either text or binary file, Coutput file> is a binary file. The programs need to do basic sanity check on , , and gracefully exit when any illegitimate file is found (e.g., the does not contain 8 bytes in hex). Take a screen shot of the execution of the following commands: DES_ECB_Enc -k deskey.txt -i CS468-HN2.txt -o CS468-Hw2.mydesec DES_ECB_Dec -k deskey.txt -i CS468-HN2.mydesecb -o CS468-HW2-mydesecb.txt name the screenshot file "CS468-HN2-3A." (here * depends on the format of your screenshot, e.g., jpg, use provided deskey.txt files). You need to develop 2 C programs "DES ECB Enc.c" and "DES ECB Dec.c" that use the ECB mode DES cipher in OpenSSL to encrypt or decrypt a given file (of arbitrary length) into another encrypted or the decrypted file with any given encryption key and IV. Specifically, the programs need to support the following commands line arguments and usage: DES_ECB_Enc -k -i -o DES_ECB_Dec -k -i -o where contains the 32-byte encryption key in hex format; contains the 8-byte IV in hex format; is the name of the input file (e.g., plaintext or cipertext); is the name of the output file (e.g., cipher text or plaintext). Note: and are text files, input file> could be either text or binary file, Coutput file> is a binary file. The programs need to do basic sanity check on , , and gracefully exit when any illegitimate file is found (e.g., the does not contain 8 bytes in hex). Take a screen shot of the execution of the following commands: DES_ECB_Enc -k deskey.txt -i CS468-HN2.txt -o CS468-Hw2.mydesec DES_ECB_Dec -k deskey.txt -i CS468-HN2.mydesecb -o CS468-HW2-mydesecb.txt name the screenshot file "CS468-HN2-3A." (here * depends on the format of your screenshot, e.g., jpg, use provided deskey.txt files)

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!