Solved

PGP Outlook Express Plug-In Decryption Misses Line-Ends ..

Posted on 2004-08-16
3
273 Views
Last Modified: 2010-04-11
Users of the web site send HTML forms to a secure UNIX based server over HTTPS. The secure server translates the forms into emails and encrypts the emails using PGP before sending them (the emails) to a single PC running XP.

It works fine without the PGP encryption ..

The problem is that with the PGP (layer) enabled the decryption process on the XP machine seems to translate the line-end characters incorrectly. The result is that all input lines of data are appended to form a single output line. The single output line of data appears to contain vertical bars where the line-ends should have occurred.

This is the latest version of Desktop PgP (ie. 8.x) ...  ?

Thanks,

        ChrisColeman.  

   
0
Comment
Question by:ChrisColeman
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
chris_calabrese earned 125 total points
ID: 11813820
The Unix standard is to end all lines with a newline (\n), while Windows ends all lines with cariage-return newline (\r\n).

Unix automatically adds the cariage-return to emails, but can't reach inside the PGP attachment to add them.

So, the solution is to add the cariage-returns to the HTML file before sending it to PGP (most Unix systems have a program called unix2dos or ux2dos to do this easily).

On the other other hand, since this is HTML, which doesn't require line-breaks, what's the problem?
0
 

Author Comment

by:ChrisColeman
ID: 11814274
 Ok, I guess from your reply that  UNIX is adding a carraige return to the complete PGP message after encryption, rather than adding the carraige returns to each line of input before encryption.

  Your suggestion to add \r\n to each line of the form input may solve the problem, because the \r\n could then be encrypted and decrypted by the Outlook Plug-in ..

   
0
 

Author Comment

by:ChrisColeman
ID: 11840877
Unfortunately adding \r\n to the form fields would not work.

Although I now have a solution, using the decrypt command twice from the OE plugin. On the first decrypt the message is decrypted with UNIX line-ends. On the second decrypt the missing ascii 13 is added and the message flows correctly down the page ..

Thanks.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Suggested Solutions

Article by: btan
Provide an easy one stop to quickly get the relevant information on common asked question on Ransomware in Expert Exchange.
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

747 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now