Re: Using certificates with WodCrypt (General questions)
Hi Mark,
When you load certificate using wodCertificate you should load private key part from certificate. So you need to use LoadKey Method instead Load Method in wodCertificate.
Also for encryption you should use public key and for decryption you need to use private key inside SecretKey Property.
[code]eCert.LoadKey App.Path + \test.cer
oCrypt.SecretKey = eCert.PublicKey[/code]
Let us know how it goes.
Regards,
Drazen
Complete thread:
- Using certificates with WodCrypt - Mark Lancaster, 2010-08-31, 11:50
- Re: Using certificates with WodCrypt - woddrazen, 2010-08-31, 12:31
- Re: Using certificates with WodCrypt - Mark Lancaster, 2010-08-31, 22:37
- Re: Using certificates with WodCrypt - wodDamir, 2010-08-31, 22:46
- Re: Using certificates with WodCrypt - Mark Lancaster, 2010-09-03, 17:25
- Re: Using certificates with WodCrypt - woddrazen, 2010-09-03, 17:33
- Re: Using certificates with WodCrypt - Mark Lancaster, 2010-09-03, 17:25
- Re: Using certificates with WodCrypt - wodDamir, 2010-08-31, 22:46
- Re: Using certificates with WodCrypt - Mark Lancaster, 2010-08-31, 22:37
- Re: Using certificates with WodCrypt - woddrazen, 2010-08-31, 12:31