English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Write a shell program to cipher all the text/content in any text document in the current working directory and also use another shell program to decipher it to read. Use any schema for ciphering

2007-10-24 06:43:32 · 2 answers · asked by dinky 2 in Computers & Internet Programming & Design

2 answers

I wont write your shell for you but here is a schema

tr a-z n-za-m | tr A-Z N-ZA-M

Rotate 13. It takes the 26 letters in the alphabet and rotates them 13 positions. It "translates" a-z into being n-z and a-m.
So if I typed
echo This is a test | tr a-z n-za-m | tr A-Z N-ZA-M
then I get back
Guvf vf n grfg
and if I want to translate that then I run it thru again
echo Guvf vf n grfg | tr a-z n-za-m|tr A-Z N-ZA-M
then I get
This is a test

Now just write a script that lets you give it a file to encrypt or decript

2007-10-25 06:57:25 · answer #1 · answered by Gandalf Parker 7 · 0 0

This question has been posted so many times on here. Hasn't this homework's deadline come and gone yet?

2007-10-24 08:18:20 · answer #2 · answered by Haley 5 · 0 0

fedest.com, questions and answers