Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
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!-)
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement