Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CRYPTOAPI - create/use public key
Message
From
25/07/2002 11:26:42
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
CRYPTOAPI - create/use public key
Miscellaneous
Thread ID:
00682534
Message ID:
00682534
Views:
52
Hi,

Hopefully there is somebody who already did some work with this DLL,
currently I need to create a new "public key" from a "private key" ( a readable password) and then to "import" the same public key into the CSP
to proceed the encryptio or decryption.

VFP70 has a wrapper to CRYPTOAPI, and there are many articles, but none of them( as much as I tried ot search) shows in code how to "load" the public key and then use it, and the reverse, how to "create" a public key and export it from the CSP.

I don't need the whole code, I just need the right steps (with the function names), I tried, but doesn't work ( I tried to derive a key from a password (which works)and then tried to "CryptGetUserKey" (here it fails) to afterwards just use CryptExportKey to get the key blob.

If somebody has done this I will appreciate if you can share the code or at least the sequence of the cryptoapi functions.


Thanks in advance!-)
Reply
Map
View

Click here to load this message in the networking platform