Re: Using certificates with WodCrypt (General questions)
Hi Drazen,
I've tried what you suggested but I'm afraid it didn't quite work out.
For the encryption I set SecretKey to eCert.PublicKey and an encrypted file was produced.
For the decrpt, I loaded the decryption certificate using:
dCert.Load App.Path + /test.pfx , password
dCert.LoadKey App.Path + /test.pfx , password
and then set SecretKey to dCert.PrivateKey.
The result was a garbage file.
I then tried setting SecretKey to dCert.PublicKey and this generated the original clear text followed by a number of NULLs.
It looks like the public key is being used literally, like a password, rather than to generate cyphertext that can only be decrpyted using the private key.
Am I missing a step?
Thanks,
Mark.
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