03.05.2005 12:44:16CrypoAPI - Encrypt/decrypt with clear public key Ответов: 3
Flame CSTLE
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.
 
Ответы:
03.05.2005 13:14:04Yury
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 :)
03.05.2005 13:22:16Flame CSTLE
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)
03.05.2005 13:28:28Yury
Ok.

1) Use CryptImportKey;
2) Use CryptDecrypt;

That’s all.