encrypt to self flag

44 views
Skip to first unread message

cfitz

unread,
Oct 10, 2011, 9:23:17 AM10/10/11
to DidiSoft Forum
Does anyone know how to set the encrypt to self flag like PGP has?

didisoft

unread,
Oct 10, 2011, 1:59:12 PM10/10/11
to DidiSoft Forum
Hello Cheri,

At the moment you can use the method PGPLib.EncryptFiles for this
perpose.

To encrypt only one file, just pass a one element array as a first
parameter (the data file to be encrypted),
and a two element array as a second parameter (the first element will
be the public key of your recipient and the second one will be your
own OpenPGP public key)

Of course we can easily expose a new overloaded method
PGPLib.EncryptFile that handles multiple recipients.
Just drop me a line if you prefer to use such method.

Best Regards,
Peter Kalef
DidiSoft Ltd.

cfitz

unread,
Oct 11, 2011, 11:49:37 AM10/11/11
to DidiSoft Forum
Thanks!

cfitz

unread,
Oct 19, 2011, 9:22:31 AM10/19/11
to DidiSoft Forum
Peter,
I followed the instructions below. I am able to decrypt but the other
person is not able to decrypt with their key. They are the first in
the array, I am second as instructed. Please advise. Thanks.

Cheri

On Oct 10, 12:59 pm, didisoft <akrac...@gmail.com> wrote:

didisoft

unread,
Oct 19, 2011, 9:29:31 AM10/19/11
to DidiSoft Forum
Hello Cheri,

Can you please post the error they are getting if available ?

This should be working as we have customers that use it extensively.

Kind Regards,
Peter Kalef
DidiSoft Ltd.

cfitz

unread,
Oct 21, 2011, 10:06:57 AM10/21/11
to DidiSoft Forum
The client is trying to decrypt the file on an Unix server and is
"receiving a signal 11" error. I am trying to get more information
but I thought maybe this might be enough to help me.

Thanks,
Cheri

didisoft

unread,
Oct 21, 2011, 11:24:41 AM10/21/11
to DidiSoft Forum
Hello Cheri,

Signal code 11 (SIGSEGV) is the unix error for segmentation fault, but
unfortunately we have no idea what could have happened.

Helpful information could be, OpenPGP software and version used by the
recipient and of course log file entries concerning the decryption
process.

cfitz

unread,
Oct 21, 2011, 11:48:56 AM10/21/11
to DidiSoft Forum, cheri.f...@gilacorp.com
I tried something different.

The first time, I used the key pair file, the second time I used the
asc public key file for us.
The first time, asciiArmor and withIntegrityCheck were set to false,
the second time they were set to true.
The first time the 11 error, the second time, no error but no output
file.

The client has no log but this is the PGP information.

Pretty Good Privacy(tm) Version 6.5.8
(c) 1999 Network Associates Inc.
Uses the RSAREF(tm) Toolkit, which is copyright RSA Data Security,
Inc.
Export of this software may be restricted by the U.S. government.

didisoft

unread,
Oct 21, 2011, 2:35:13 PM10/21/11
to DidiSoft Forum
Hello Cheri,

Can you give me some more details.
1) do you change the Compression and Cypher properties of the PGPLib
instance that you use to encrypt with?
2) do you provide more than one file to encrypt to the EncryptFiles
method?

cfitz

unread,
Oct 21, 2011, 2:43:52 PM10/21/11
to DidiSoft Forum
1) No
2) No

cfitz

unread,
Oct 21, 2011, 2:54:51 PM10/21/11
to DidiSoft Forum
They are using AIX, which is IBM Unix.

On Oct 21, 1:35 pm, didisoft <akrac...@gmail.com> wrote:

didisoft

unread,
Oct 21, 2011, 3:22:36 PM10/21/11
to DidiSoft Forum
Hi Cheri,

Are the keys that your receiving partner use
(his/her public key that you use to encrypt with and his/her private
key)
generated by you (e.g. DidiSoft OpenPGP Library for .NET) or they have
generated them themselves on the AIX machine?

Regards,
Peter

Cheri Fitzwater

unread,
Oct 21, 2011, 5:01:44 PM10/21/11
to didisof...@googlegroups.com
My first round was with our key pair and the client's public key.  Ours was generated by PGP command line and theirs was generated by their PGP on their AIX machine. 
 
The second round was with our public key again generated by PGP Command Line and their public key.  
 
In the program I am pulling in asc key files instead of using the key ring.
 
Cheri

didisoft

unread,
Oct 22, 2011, 2:43:10 PM10/22/11
to DidiSoft Forum
Hello Cheri,

I assume that your existing PGP command line installation successfully
encrypts a file with the 'encrypt to self' option and the same
recipient can decrypt it.

If the above is true,
can you please send me an encrypted with PGP command line test
document (with 'encrypt to self' on)
and another one encrypted with DidiSoft OpenPGP Library for .NET
(again encrypted with both keys).

My intention is to compare the structure of the two encrypted
archives.

Regards,
Peter

Cheri Fitzwater

unread,
Oct 24, 2011, 8:41:33 AM10/24/11
to didisof...@googlegroups.com
Hello Peter,
Yes, PGP Command line encrypts successfully with "encrypt to self".  The key words are placed before the client recipient so the command looks like this:
 
pgp --encrypt filename --encrypt-to-self --recipient "lea_public"
 
I am wondering if the 2 keys for your software should switched or does the order matter?  Any way, attached are the 2 files.  The file with the word "old" in the name is PGP Command Line.  The file with "new" in then name is DidiSoft Library.
 
If for some reason, the files do not come through, please let me know and I will zip them and resend.
 
Cheri

OC_AccountStatus_oldPGP.csv.pgp
OC_AccountStatus_newPGP.csv.pgp

didisoft

unread,
Oct 24, 2011, 1:57:58 PM10/24/11
to DidiSoft Forum
Hello Cheri,

Thank you for sedning me the files.

We are working on this case. I will notify you once we have any
update.

Regards,
Peter

Cheri Fitzwater

unread,
Oct 24, 2011, 2:31:02 PM10/24/11
to didisof...@googlegroups.com
Thanks Peter!
Reply all
Reply to author
Forward
0 new messages