Bug 350424 - I'm Encrypting a file and sending it to a site, the decrypted file has a '.' (period) between every character
Summary: I'm Encrypting a file and sending it to a site, the decrypted file has a '.' ...
Status: RESOLVED UPSTREAM
Alias: None
Product: kleopatra
Classification: Applications
Component: general (show other bugs)
Version: 2.1.1
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-20 19:42 UTC by robert.applegate
Modified: 2015-08-05 13:46 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description robert.applegate 2015-07-20 19:42:20 UTC
This is the command I'n the batch file that is encrypting the file:       
$G_a = exec('C:\Program File (x86)\GNU\GnuPG\pub\gpg.exe',' --batch -- trust model always --passphrase secret - u "User Name" -r "Recipient Name" -se d:\bank\ach\us45ach', 8 );
The important thing is that the recipient is saying the DECRYPTED file on their end has a '.' between each and every character in the file, the original un-encrypted file does not. Know anything about why encrypting the file would do this. It's a Binary file. Now I have 5 other CHECK (not ACH) files I'm using the same keys for - but none of the other files have the problem- and I believe they are all ASCII files (as opposed to Binary).

Reproducible: Always

Steps to Reproduce:
1. Run the data services 
job that copies the file from the SAP folder to the Data Services folder, encrypts it, calls batch job that calls the script to send the file to the site.2.
3.

Actual Results:  
Same result.


Encrypted the file without placing a '.' (ASCII 00) between each and every character.
Now - originally I was copying the file with a DOS copy command with a /A switch (ASCII), the copied file would in fact have the '.' between every character. I have since taken the /A out of the copy command so the copied file now looks exactly like the original, but the Encrypted file still has the '.' between every character when decrypted.
Comment 1 Andre Heinecke 2015-08-05 13:46:03 UTC
Possibly an encoding issue although your description sounds weird. Try adding --no-textmode to get the file treated as binary.

If that does not help try asking on the gpg4win-users mailing list. (Linked from gpg4win.org / community)

This is definitely not a bug in Kleopatra (as kleopatra is not involved here) and Probably not a bug in GnuPG sounds more like an environment problem.