Register
It is currently Fri Oct 31, 2014 6:30 pm

encrypt mono alphabetic


All times are UTC - 6 hours


Post new topic Reply to topic  [ 8 posts ] 
Author Message
 PostPosted: Thu Sep 04, 2014 8:30 am   

Joined: Thu Sep 04, 2014 8:25 am
Posts: 5
Hey

trying to code mono-alphabetic cipher that ask user for a key n is able to encrypt a text file..i need help


Top
 Profile  
 PostPosted: Thu Sep 04, 2014 9:04 am   

Joined: Thu Sep 04, 2014 8:25 am
Posts: 5
i have the bash script but i dont know how to do geometric/columnar/rail fence encryption


Top
 Profile  
 PostPosted: Fri Sep 05, 2014 2:14 pm   

Joined: Mon Mar 02, 2009 3:03 am
Posts: 552
hi,

no details, no obvious solution.


Top
 Profile  
 PostPosted: Sun Sep 07, 2014 2:15 am   

Joined: Thu Sep 04, 2014 8:25 am
Posts: 5
write in bash shell script:Mono-alphabetic key cipher that asks user for the key and is able to encrypt a text file


Top
 Profile  
 PostPosted: Sun Sep 07, 2014 3:25 am   

Joined: Thu Sep 04, 2014 8:25 am
Posts: 5
#!/bin/bash


file=$1
echo -n "Enter a file name : "
read file

if [ ! -f $file ]
then
echo "$file not a file!"
exit 1
fi

echo -n "Enter a Password : "
read password

done


#is it correct?


Top
 Profile  
 PostPosted: Sun Sep 07, 2014 12:50 pm   

Joined: Mon Mar 02, 2009 3:03 am
Posts: 552
that's a beginning.

of course `done' should not be in this script :/
it's the final keyword for `for', `while' and `until' loops


Top
 Profile  
 PostPosted: Sun Sep 07, 2014 8:19 pm   
Site Admin
User avatar

Joined: Sun May 15, 2005 9:36 pm
Posts: 669
Location: Des Moines, Iowa
A simple google search might have shown you an example...
http://www.tldp.org/LDP/abs/html/textproc.html

Read that, and you will find your answer to your homework.


Top
 Profile WWW  
 PostPosted: Sun Sep 07, 2014 8:58 pm   

Joined: Thu Sep 04, 2014 8:25 am
Posts: 5
does anyone have idea on rail fense or columnar ,geometic transposition??? how do i encrypt a text file?


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP