Generation of public key from private
Sometimes it is needed to create a public key from the
private one. This, unlike the reverse procedure, is quite easy. To do this, you
should only have the private key in memory (created with the GenerateCouple
or loaded with the LoadKey ) and call GeneratePublicKey.
Example :
PublicKey = ActiveCryptObject.GeneratePublicKey(PrivateKey)
IF ActiveCryptObject.Error <> ERR_OK THEN MsgBox "Error happened"
|
|