peterwest
asked on
Encryption Algorithms and stuff!!
Hi there!!
I'm interested in writing a little application that will allow the user to type a message into a text box before specifying a password that will be used to encrypt the message. I would then like to be able to place the encrypted data onto the clipboard so that it can be pasted into another application such as outlook.
However, the simply encryption routine i'm currently using (which uses XOR) returns encrypted data with non-printable characters - this obviously causes problems when pasting the data into Outlook and then subsequently trying to decrypt it.
My question is this: does anyone know of any encryption algorithms that do not produce non-printable characters? I'm particularly interested in data-encryption and thus any information that can be provided on it would be appreciated.
Thanks in advance
Pete
<peterjwest@yahoo.com>
I'm interested in writing a little application that will allow the user to type a message into a text box before specifying a password that will be used to encrypt the message. I would then like to be able to place the encrypted data onto the clipboard so that it can be pasted into another application such as outlook.
However, the simply encryption routine i'm currently using (which uses XOR) returns encrypted data with non-printable characters - this obviously causes problems when pasting the data into Outlook and then subsequently trying to decrypt it.
My question is this: does anyone know of any encryption algorithms that do not produce non-printable characters? I'm particularly interested in data-encryption and thus any information that can be provided on it would be appreciated.
Thanks in advance
Pete
<peterjwest@yahoo.com>
First encrypt your data, then convert it to Base64 format, then paste it. Base64 is the standard email encryption and is defined in MIME RFC 1521. Base64 uses only standard printable characters. I say encode it first because Base64 is a fairly common encryption technique that would not be difficult to decipher. Decode it backwards by first converting it from Base64 format to 8 bit, then decode.
peterwest,
You can simply build your own routine to encrypt your data to characters within the range of readable characters.
I suggest that you think of mrmick's solution first.
However, if you want a function that will perform what I am suggesting, please leave me a comment.
You can simply build your own routine to encrypt your data to characters within the range of readable characters.
I suggest that you think of mrmick's solution first.
However, if you want a function that will perform what I am suggesting, please leave me a comment.
ASKER
Thanks MrMick - I have to admit that what your suggesting sounds like a good idea - have you got any more information on the Base64 encryption routine and how it works?
Thanks
Pete
P.S. If you have got some more info or can give me a web address to look it up then i'll increase the points accordingly.
Thanks
Pete
P.S. If you have got some more info or can give me a web address to look it up then i'll increase the points accordingly.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for all you help - that's just what I needed.
Pete
Pete
Will this code work on rich text?
The code will work on any data.