943,920 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 2842
  • Java RSS
Dec 10th, 2007
0

Reversing ASCII space in notepad

Expand Post »
Hi guys,

I am working on an encryption/decryption vigenere cipher at present. Ive been reading and writing to text files using integer arrays and then modding them together in order to get the full ASCII character set.

the problem i am facing is, when i am encrypting, the spaces dissapear which is brilliant, but when im decrypting the message, using the same key, i get the plaintext back but the spaces are symbols

An example is shown below:

Due§to$this­Æxample

It should decrypt back to the message:

Due to this Example

Any ideas how i can get the spaces back? a space i think is ASCII value 32 if that helps.

Thanks in advance
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ivabigun is offline Offline
10 posts
since Dec 2007
Dec 10th, 2007
0

Re: Reversing ASCII space in notepad

Could you please provide the code that dictates the decryption? I would normally ask only for certain parts of code, but I would need to see the whole thing to figure out where it's messing up.

That is, unless, you've pin-pointed to the specific spot in the algorithm where the ASCII values are getting messed up.
Reputation Points: 23
Solved Threads: 2
Junior Poster in Training
indienick is offline Offline
71 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: java gui question
Next Thread in Java Forum Timeline: null pionter Exception





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC