LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-01-2011, 08:25 AM   #1
baxzius
Member
 
Registered: Jan 2010
Location: India
Distribution: ubuntu
Posts: 134
Blog Entries: 1

Rep: Reputation: 21
programming vigenre chiper in C....


need to write a programme that takes input from a text file then either encrypt or decrpyt it.
according to the ASCII code of this charecters
the user should give us his/her own keyword

then the program will save the output in a new file .

Example: Message: welcome home
Keyword: python
Cipher text: ç Þ à Ë Þ Û Õ ™ Ü × Ü Ó

w e l c o m e h o m e p y t h o n p y t h o n
w e l c o m e h o m e = 119 101 108 099 111 109 101 032 104 111 109 101
p y t h o n p y t h o n = 112 121 116 104 111 110 112 121 116 104 111 110
119 101 108 099 111 109 101 032 104 111 109 101
+ 112 121 116 104 111 110 112 121 116 104 111 110
--------------------------------------------------
231 222 224 203 222 219 213 153 220 215 220 211

231 222 224 203 222 219 213 153 220 215 220 211 = ç Þ à Ë Þ Û Õ ™ Ü × Ü Ó
 
Old 12-01-2011, 08:33 AM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,200

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
You forgot to actually ask a question. "This is what I need to do for homework" is not a question.

Exactly which part of your requirements is giving your problems?

BTW, I like the choice of keyword.

Last edited by dugan; 12-01-2011 at 11:55 AM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration