Welcome to Dream.In.Code
Become a Java Expert!

Join 150,381 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 1,235 people online right now. Registration is fast and FREE... Join Now!




Help me with this solitaire algorithm

 
Reply to this topicStart new topic

Help me with this solitaire algorithm, encryption and decryption

EquinoX
28 Jan, 2008 - 09:38 AM
Post #1

D.I.C Head
**

Joined: 19 Jan, 2007
Posts: 63


My Contributions
So I am asked to create this program to decrypt and encrypt a word using the solitaire algorithm. The encrypt and decrypt class takes two argument, one which is the prog1.data and the second one is message.txt. I am though confused with this statement:

Note that if the message file has multiple message to encrypt/decrypt, all but the first will be decrypted using the deck as it exists after the decryption of the preceding message.

So this means that if in my message.txt the file contains:

Dr. McCann is insane!
YXOVRSZKFXJUGGAFXNJR

The first line is the line that I have to encrypt and the second line is the line that I have to decrypt. And suppose that there is a third line and so on, the one that will decrypt is the second line till the end of the line?? Is this right?? How is the third line possible to form?

If you are curious my full assignment is located at :

http://www.cs.arizona.edu/classes/cs345/spring08/prog1.pdf

thanks for all the help

This post has been edited by EquinoX: 28 Jan, 2008 - 10:28 AM
User is offlineProfile CardPM
+Quote Post

outlaw107
RE: Help Me With This Solitaire Algorithm
28 Jan, 2008 - 09:48 AM
Post #2

New D.I.C Head
Group Icon

Joined: 1 Nov, 2007
Posts: 31


My Contributions
That link doesn't have any assignment posted in it sad.gif...copy it from word doc or pdf and paste it?
User is offlineProfile CardPM
+Quote Post

EquinoX
RE: Help Me With This Solitaire Algorithm
28 Jan, 2008 - 10:29 AM
Post #3

D.I.C Head
**

Joined: 19 Jan, 2007
Posts: 63


My Contributions
I fixed the broken link, now the link is working fine.. sorry for the problem
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 04:09PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month