EldoS | Feel safer!

Software components for data protection, secure storage and transfer

How to Generate Keys

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#19068
Posted: 02/15/2012 07:48:19
by Harsh Patel (Priority Standard support level)
Joined: 02/08/2012
Posts: 14

Hi - I am trying to figure out how to generate a set of keys for PGP File Encryption and Decryption. I think I need:

1. A Public Key
2. A Private Key

I am using VBScript for this and can't seem to find any examples which can help me figure out how to create 2 keys?

Can anyone help?
Thanks
#19070
Posted: 02/15/2012 07:58:59
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

We don't have a sample for VBScript but you can use VB sample as a reference because its very similar. Its located in \EldoS\SecureBlackbox.AX\Samples\VB6\SBB8\OpenPGPBlackbox\PGPKeys folder.
#19071
Posted: 02/15/2012 08:04:04
by Harsh Patel (Priority Standard support level)
Joined: 02/08/2012
Posts: 14

Can you give me high level steps please, so I can work through the VB6 code.

Thanks
#19072
Posted: 02/15/2012 08:10:46
by Vsevolod Ievgiienko (EldoS Corp.)

You should:

1) create an instance of PGPBBox8.ElPGPSecretKeyX
2) call its GenerateForUser (for RSA keys) or GenerateWithSubkeyForUser (for Elgamal/DSS keys) method.

Please refer to GenerateKey procedure in MainForm.frm file.
#19073
Posted: 02/15/2012 08:21:46
by Harsh Patel (Priority Standard support level)
Joined: 02/08/2012
Posts: 14

Apologies for my ignorance, but does that only generate a secret key? what about the public key.

I am looking at Generate Key (Unfortnuately I do not have a VB compiler on my machines so cannot step through the code).

Thanks
#19075
Posted: 02/15/2012 08:26:03
by Vsevolod Ievgiienko (EldoS Corp.)

It generates both public and secret keys. A public key can be accessed via ElPGPSecretKey.PublicKey property.
#19077
Posted: 02/15/2012 10:55:15
by Harsh Patel (Priority Standard support level)
Joined: 02/08/2012
Posts: 14

Thanks - I'll try and get through this by looking at the VB6 code.
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 882 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!