EldoS | Feel safer!

Software components for data protection, secure storage and transfer

PGP Foxpro

Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.
#631
Posted: 07/06/2006 11:59:22
by Peter Subianto (Basic support level)
Joined: 07/03/2006
Posts: 4

Is there another way to set the encrypting keys for the PGPWriter object (ElPGPWriterX.EncryptingKeys)? Using Visual Foxpro, I can't just assign an instance to the object ElPGPKeyring.

Thank you.
#634
Posted: 07/06/2006 12:33:49
by Eugene Mayevski (EldoS Corp.)

Can you please tell us what particular problems you are having with assigning the value?


Sincerely yours
Eugene Mayevski
#635
Posted: 07/06/2006 12:45:59
by Peter Subianto (Basic support level)
Joined: 07/03/2006
Posts: 4

I followed the examples in VB prj PGPWriter, form frmMain sub ProtectSource.
I had similar object EncryptingKeys with one public key in it (added with EncryptingKeys.AddPublicKey method).
The problem lies when I'm trying to assign the object EncryptingKeys to my PGPWriter object (see line of code below) :

this.PGPWriter.EncryptingKeys = this.EncryptingKeys

I'm getting a error 0x80020005 : Type mismatch.
#636
Posted: 07/06/2006 13:20:03
by Eugene Mayevski (EldoS Corp.)

I am afraid that the issue is FoxPro-specific. We don't officially support such exotic tools. Of course, we will test the issue, but this will take some time. I will move your question to HelpDesk.


Sincerely yours
Eugene Mayevski
#637
Posted: 07/06/2006 14:45:47
by Peter Subianto (Basic support level)
Joined: 07/03/2006
Posts: 4

I might found a workaround, need more work though. Instead of assigning the object directly, I used :

this.PGPWriter.EncryptingKeys = NEWOBJECT("pgpbbox.ElPGPKeyringX")

Then assign each of the 4 properties manually :
this.PGPWriter.EncryptingKeys.ArmorBoundary = this.EncryptingKeys.ArmorBoundary
this.PGPWriter.EncryptingKeys.SaveSecretKeySignatures = this.EncryptingKeys.SaveSecretKeySignatures
this.PGPWriter.EncryptingKeys.Tag = this.EncryptingKeys.Tag
this.PGPWriter.EncryptingKeys.WriteTrust = this.EncryptingKeys.WriteTrust

So far so good, until I hit the next code : this.PGPWriter.ArmorHeaders.Clear
This line I received 0x8000ffff. Catastrophic failure.

What does the ArmorHeaders.Clear do? Can I skip that?
#638
Posted: 07/06/2006 15:14:12
by Peter Subianto (Basic support level)
Joined: 07/03/2006
Posts: 4

BTW, after I run this.PGPWriter.EncryptFile, I got a message : "pgpbbox.ElPGPWriterX: No key for encryption found.". How can I make sure the keyring is loaded?
#639
Posted: 07/06/2006 15:32:51
by Eugene Mayevski (EldoS Corp.)

Quote
Peter Subianto wrote:
What does the ArmorHeaders.Clear do? Can I skip that?


Yes, you can ignore this. Most likely this is a bug and ArmorHeaders is just not created. We will check this.

Quote
Peter Subianto wrote:
BTW, after I run this.PGPWriter.EncryptFile, I got a message : "pgpbbox.ElPGPWriterX: No key for encryption found.". How can I make sure the keyring is loaded?


You can check the number of keys in the keyring. Since you are doing encryption, you need only public keys.


Sincerely yours
Eugene Mayevski
Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.

Reply

Statistics

Topic viewed 5019 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!