EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Carriage return line feeds in decrypt and verify

Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.
#23772
Posted: 02/27/2013 04:44:36
by Tim Jenkins (Basic support level)
Joined: 02/27/2013
Posts: 2

Hi I am having a problem with a decrypting a file using the Decryptandverify fuction in Delphi.

The file has Carriage return line feeds in the original file (0D0A) but when decrypted these are turned into 0D only.

The program I am then using checks the binary file is a certain length which it no longer is due to the decrease of 2 bytes 0D0A to 1byte 0D.

I beleive the file coming from our customer is encrypted in PGP using the Convert Line Feeds for text files(Input is text) setting.

Is there a way to get SBB to leave the linefeeds as original file?
#23774
Posted: 02/27/2013 04:59:07
by Mykola Olshevsky (Basic support level)
Joined: 07/07/2005
Posts: 450

Hi. Our code doesn't change carriage returns to 0x0D on decryption. Most likely line endings are stored in this format in the input file.
Did you try to decrypt this file with other software (like GnuPG, or PGP Desktop)?
#23775
Posted: 02/27/2013 05:13:47
by Tim Jenkins (Basic support level)
Joined: 02/27/2013
Posts: 2

Yes when decrypted with PGP desktop I get the original 0D0A. But when running through my software I just get 0D's.
Same seems to happen when i use the openpgpblackbox Files example program.

Is it possible that it is the way Delphi handles files?. I am trying to add PGP onto an old Delphi 7 program we already have.

The version of Secure Blackbox is 7.1.163.
#23776
Posted: 02/27/2013 05:21:59
by Mykola Olshevsky (Basic support level)
Joined: 07/07/2005
Posts: 450

Please try the latest version, 7.x is quite old.

Also if you have a license, please assign the license ticket to your user account. The ticket itself and the procedure of it's use are specified in the registration e-mail that was sent to you upon license purchase.

Reply

Statistics

Topic viewed 765 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!