Project Description:
The project will be web-based on linux/unix server.
1. With VI editor create an ascii file with at least 10 lines.
2. You have to develop SED commands in perl (you can use perl regex).
We will have the ability to change the file with thouse commands:
a. sed '/bcd/' newfile - match bcd
b. sed s/morning/evening/ old >new
c. echo Sunday | sed 's/morning/evening/'
d. sed 's/\/usr\/local\/bin/\/common\/bin/' newfile (Slash delimiter)
e. sed 's/gogo/gogo the gogo/g' newfile - Global replacement
f. sed 's/gogo/gogo the gogo/g' newfile - Global replacement, Ignore case
g. sed 's/[a-zA-Z]* //2' newfile - Delete the regexp match from the second match.
3. Encryption:
a. Encrypt the file with DES algorithm.
b. Protect the file with password.
c. Encrypt the password with RSA algorithm.
4. Decryption:
a. Decrypt the password with RSA algorithm.
b. Open the encrypted file.
c. Decrypt the file with DES algorithm.
5. Compare:
With Linux/Unix compare commands for example DIFF,COMP, you'll have to comare the file after the decryption against the original file (after SED changes).
6. The project will be web-based with simple gui
IMPORTANT:
a. You can't use built-in SHELL algorithms (for example ssh-keygen).
b. You have to implement the linux/unix commands (like diff,more,ls) with PERL without using "system call".