?
Solved

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

Posted on 2005-03-31
3
Medium Priority
?
246 Views
Last Modified: 2010-04-01
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
Comment
Question by:arnold100
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
NovaDenizen earned 200 total points
ID: 13675374
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
 

Author Comment

by:arnold100
ID: 13677313
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
 

Author Comment

by:arnold100
ID: 13677416
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question