Richard Bibby
2006-11-01 19:52:31 UTC
Hej,
I have an application that reads a file and then sends it as an attachement
on an TidMessage. This works fine and I can send (to mysef), received and
view the attached file.
Then I decided that I must encrypt the file before I attach it. So I used
the .Net System.Security.Cryptography assembly to encrypt it.
When you look at the encypted file it has lots of "strange" characters i.e.
characters with coding above the normal a-z.
When I send the file to myself, and then look at it after I have recieved it
I see that the characters have changed. Consequently I can not decrypt it.
I don't know why this is happening but I susppect that it must have
something to do with local or character coding.
Anyone any ideas how i can solve this?
What is the difference between a binary file (such as a progam as an
attachement) and my text file? Am I attaching it incorrectly?
/Richard
I have an application that reads a file and then sends it as an attachement
on an TidMessage. This works fine and I can send (to mysef), received and
view the attached file.
Then I decided that I must encrypt the file before I attach it. So I used
the .Net System.Security.Cryptography assembly to encrypt it.
When you look at the encypted file it has lots of "strange" characters i.e.
characters with coding above the normal a-z.
When I send the file to myself, and then look at it after I have recieved it
I see that the characters have changed. Consequently I can not decrypt it.
I don't know why this is happening but I susppect that it must have
something to do with local or character coding.
Anyone any ideas how i can solve this?
What is the difference between a binary file (such as a progam as an
attachement) and my text file? Am I attaching it incorrectly?
/Richard