decrypt/encrypt program

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2008
Posts: 17
Reputation: lmastex is an unknown quantity at this point 
Solved Threads: 0
lmastex lmastex is offline Offline
Newbie Poster

decrypt/encrypt program

 
0
  #1
Jan 28th, 2008
Hello guys! Im new in this forum and I hope to say for a long time since I'm new im programming right now.
Anyways, I have a big doubt on one assigment I have. I am not going to ask you to do it for me. What I want to know is what do I have to do?? The proffessor had explain me couple of times and I still dont get it! Im going to put the assigment below and if you guys understand what to do (it should be pretty easy since is the 1st assigment) please explain what do I have to do in simple words! (I dont want the code, just the explanation) Alright? Thankyou!

Write a decrypt/encrypt program.

Your program takes one argument on the command line, the key. It then uses that
key to encrypt/decrypt character-by-caracter what it gets on the standard input.
For every character from standard input it does and exclusive or with the next
character from the key. The result of the exclusive or is output on the standard
output. If all characters from the key have been used and there are more characters
inthe input, it starts over at the first character of the key. This process repeats until
all characters in the input have been modified in this way.

Hint: Be sure you use cin and cout in a raw mode where you get all the characters
that are being input.
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 327
Reputation: Colin Mac is on a distinguished road 
Solved Threads: 22
Colin Mac Colin Mac is offline Offline
Posting Whiz

Re: decrypt/encrypt program

 
0
  #2
Jan 28th, 2008
Which part don't you get?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC