Reversing ASCII space in notepad

Reply

Join Date: Dec 2007
Posts: 10
Reputation: ivabigun is an unknown quantity at this point 
Solved Threads: 0
ivabigun ivabigun is offline Offline
Newbie Poster

Reversing ASCII space in notepad

 
0
  #1
Dec 10th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 71
Reputation: indienick is an unknown quantity at this point 
Solved Threads: 2
indienick's Avatar
indienick indienick is offline Offline
Junior Poster in Training

Re: Reversing ASCII space in notepad

 
0
  #2
Dec 10th, 2007
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.
Angel-headed hipsters burning for the ancient heavenly connection, to the starry dynamo in the machinery of the night.
-Ginsburg

Don't tell me to "google it" - I already have.
Reply With Quote Quick reply to this message  
Reply

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



Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC