Use Case : 1. Your program should accept all the inputs as command line arguments only.
2. secure.exe -d/-e [decrypt/encrypt] -f [Filename] -k [key].
3. eg: input : secure.exe -e -f a.txt -k abc
a.txt -> This is a sample text
output:
a_encode.txt
key="abc"
Siht*si*a*elpmas*txet
4. eg: secure.exe -d -f a_encode.txt -k abc
input file has
key="abc"
Siht*si*a*elpmas*txet
output:
a.txt -> This is a sample text
5. User need to take a call on what alpha numeric to be replaced as space.
6. key also should be encrypted and decrypted
Use your own idea for encrypting and decrypting the key.
Say for file content, we used reversing and alpha numeric as a technique. Similar way use your own technique for the key.
Guidelines -h option. Given a sample text file as input, scan all the words in the text file and a. Create a new file, which encodes all the word in the source file by reversing each word in text file and replacing all the spaces in between the words with an alpha numeric character. E.g : This is a sample text Siht*si*a b. Ask the user to enter a secret key before initiating the encoding sequence c. Provide the option to decode the file, upon the user’s choice and start the decoding only when the secret key matches with the one obtained in the previous step to provide the original text file format.