CryptoAPI Help
-
Hi guys, i am new to cryptoAPI. I have used public/private keys algorithm in .NET. But in MFC i need to do the same thing, i need to generate public and private keys and store them in files. In cryptoAPI all function uses the handle to keys that's why i am confused how to generate keys, store in files, and how to use them for encryption and decryption. some one tell me how can i achieve this... Thanks in advance ganesh_IT
-
Hi guys, i am new to cryptoAPI. I have used public/private keys algorithm in .NET. But in MFC i need to do the same thing, i need to generate public and private keys and store them in files. In cryptoAPI all function uses the handle to keys that's why i am confused how to generate keys, store in files, and how to use them for encryption and decryption. some one tell me how can i achieve this... Thanks in advance ganesh_IT
-
Hi Niklas, thanks for your help. In my project i need to encrypt my client's publickey and transfer it to server. Server decrypt it and match the client's publickey with server's publickey. But cryptoAPI function uses handle for keys, i don't know how to write public/privatekey in files because in need to transfer keys between client and server. Thanks in advance ganesh_IT
-
Hi Niklas, thanks for your help. In my project i need to encrypt my client's publickey and transfer it to server. Server decrypt it and match the client's publickey with server's publickey. But cryptoAPI function uses handle for keys, i don't know how to write public/privatekey in files because in need to transfer keys between client and server. Thanks in advance ganesh_IT
You can use CryptExportKey[^] and CryptImportKey[^].
-
You can use CryptExportKey[^] and CryptImportKey[^].