| ||||
| ||||
How is possible to encrypt / decrypt using clear public key with CryptoAPI? I have public key which modulus is 1024 bit, and need to decrypt some data? I read documentation of CrpyoAPI and found that I should use public key blob, and this blob is encrypted. Can somebody guide me? Thanks a lot. | ||||
Ответы: | ||||
| ||||
First of all you have to read about "public" and "private" keys. Now, I think so, you are not quite understanding basic principles of cryptographic technologies. Than you will be ready to the next step :) | ||||
| ||||
The exactly question is this: How can I decrypt or encrypt using MS CryptoAPI and data below? Data :"00 11 22 33 44 55 66 77" Key :"A1 A2 .........." 128 byte long (private or public in clear) | ||||
| ||||
Ok. 1) Use CryptImportKey; 2) Use CryptDecrypt; That’s all. | ||||