| | |
Reversing ASCII space in notepad
![]() |
•
•
Join Date: Dec 2007
Posts: 10
Reputation:
Solved Threads: 0
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
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
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.
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.
-Ginsburg
Don't tell me to "google it" - I already have.
![]() |
Other Threads in the Java Forum
- Previous Thread: java gui question
- Next Thread: null pionter Exception
| Thread Tools | Search this Thread |
-xlint actionlistener android api applet application array arrays automation bi binary blackberry block bluetooth character chat class client code compile component consumer database desktop developmenthelp eclipse error fractal freeze ftp game gameprogramming givemetehcodez graphics gui html ide image input integer j2me j2seprojects java javac javaee javaprojects jni jpanel julia learningresources lego linked linux list loop loops mac map method methods mobile netbeans newbie notdisplaying number online page print printf problem program programming project properties qt recursion researchinmotion rotatetext rsa scanner server set singleton size sms sort sql string swing system template textfields threads time title tree tutorial-sample update windows working





