Question: help me write this c program that is a encrypting / decrypting utility Requirements 1. The utility needs to be called cryptoMagic and needs to
help me write this c program that is a encrypting / decrypting utility
Requirements 1. The utility needs to be called cryptoMagic and needs to be written in C a. The utility has 2 command-line switches they are encrypt and decrypt b. If none of these switches is specified, then encrypt is assumed c. The utility also takes the name of an ASCII input file to encrypt/decrypt as an argument d. For example: cryptoMagic encrypt myFile.txt will encrypt the contents of the myFile.txt file cryptoMagic myFile.txt will encrypt the contents of the myFile.txt file cryptoMagic decrypt myFile.crp will decrypt the contents of the myFile.crp file 2. When the utility is asked to encrypt an ASCII file, it will take the input filename and produce the encrypted file with the same base filename and an .crp file extension a. For example: cryptoMagic encrypt myFile.txt will produce an encrypted file called myFile.crp 3. When the utility is asked to decrypt an encrypted file, it will take the input filename and produce the decrypted file with the same base filename and an .txt File extension a. For example: cryptoMagic decrypt myFile.crp will produce a decrypted file called myFile.txt 4. It should be noted that the input file can have any file extension. When asked to encrypt, you need to replace the existing file extension (if any) with .TXT. Similarly when asked to decrypt, you need to replace the existing file extension (if any) with .CRP 5. Each line (up to and including the carriage return (noted as
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
