Question: Program name encrypt - encrypt or decrypt a file using DES encryption Usage encrypt key: an 8 character string used as the DES key to
Program name
encrypt - encrypt or decrypt a file using DES encryption
Usage
encrypt
key: an 8 character string used as the DES key to encrypt/decrypt
input file: the file to encrypt/decrypt
output file: the result of the operation
mode: specifies whether to encrypt or decrypt- if mode=0, then encrypt the input file, if mode=1 then decrypt the input file
CAN YOU PLEASE HELP CREATE A PROGRAM THAT READS A FILE AND ENCRYPT AND DECRYPTS AND WRITES TO A NEW FILE USING THE READ() AND WRITE() FUNCTIONS WITH THE HELP OF THE LINUX ECB_CRYPT() FUNCTION. THE PROGRAM SHOULD BE COMPILED USING THE ./ENCRYPT(KEY, INPUT FILE, OUTPUT FILE, MODE OF 0 OR 1 FOR ENCRYPTION)
C PROGRAM
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
