• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 251
  • Last Modified:

Why is encryped text be changed when sent in an email.

Hi,
I have written a program to encrypt text and send it as an email using mapi. My problem is when I send the encrypted  email, it some how it gets changed. If I send it to my self and decrypt it, only a few characters get changed. When I send it long distance it can't be decrypted at all.  Anyone have any idea why? My program works hand and hand with outlook express.

Thanks
AJ.
0
arnold100
Asked:
arnold100
  • 2
1 Solution
 
NovaDenizenCommented:
Any data you send in an email message has to be "7-bit-clean".  This means that all characters in the message have to have values 0 through 127, and values 128 through 255 are prohibited.  If you try to send data bytes in the 128-255 range, you aren't guaranteed that the data will make it to your destination unchanged.

Normal text stays within the 0-127 range, but encrypted data typically is made up of binary-style data throughout the whole 0-255 range.  Therefore, raw encrypted data cannot be reliably sent via email.

There are ways of encoding binary-style information into the 0-127 range.  The old way is called uuencoding, which uses the uuencode and uudecode programs.  Nowadays most people use base64 encoding, which wastes a little less space than uuencoding.
0
 
arnold100Author Commented:
I pretty sure I have a Unicode problem. I need to find out how to send all my encrypted emails as unicode emails using mapi. Anyone know how?

Thanks,
AJ.
0
 
arnold100Author Commented:
NovaDenizen,
Your 100% right. I tried sending the email as unicode and it didn't work. I accept your answer.

Thank you for the help,
AJ.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now