Question: Homework_4 D esign and implement a tar utility for encrypting and decrypting a single file specified as follows; $ tar2 e file o file.tar2 (for

Homework_4

Design and implement a tar utility for encrypting and decrypting a single file specified as follows;

$ tar2 e file o file.tar2 (for encrypting)

$ tar2 x file.tar2 (for decrypting)

If the option of encrypting is specified the tar app will ask for a password in order to do that. In order to decrypt an encrypted file the tar app will ask for the password.

Note 1: Do not implement the tar functionality for packing /unpacking a list of files, just the functionality for encrypting and decrypting a single file.

Note 2: For encrypting a file, implement the following algorithm; for each byte in the target file get the module 8 of the ASCII code of each character in the password reading the password from left to right and invert the corresponding bit in the byte. For decrypting a file, for each byte in the tar file get the module 8 of the ASCII code of each character in the password reading the password from right to left and invert the corresponding bit in the encrypted byte.

Concepts in practice: Bitwise operators, bit manipulation.

---------------o----------o---------------

Files to be used: Lab 06_Bit Manipulation_Project Phase 02

Files to be delivered: tar2.c

Files to be used:

https://mega.nz/#!mUQnAC5B!K0mYyef2Yj4ByEvdlZ05v0D_-TTqRe7UNNzub-afOv0

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!