General information
Category:
Coding, syntax & commands
Title:
CRYPTOAPI - create/use public key
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only