Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CRYPTOAPI - create/use public key
Message
De
25/07/2002 11:26:42
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
CRYPTOAPI - create/use public key
Divers
Thread ID:
00682534
Message ID:
00682534
Vues:
50
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
Fil
Voir

Click here to load this message in the networking platform