Getting Error while acquiring Windows CryptoAPI context
Brought to you by:
kamyar1979
I'm trying to use NsisCrypt to secure a couple of passwords in a config file. The code works fine on my development machine but fails with the above error on every other machine I've tried it on.
The code:
StrCpy $algorithm "3des"
NsisCrypt::Base64Encode "<key string>"
Pop $key
NsisCrypt::Base64Encode "<iv string>"
Pop $iv
NsisCrypt::EncryptSymmetric $teststring $algorithm $key $iv
Pop $encryptedString
What am I doing wrong?
I am considering and reproducing the error. Will reply you ASAP. Thanks!
I also asked this on Stack Overflow here and there was a suggestion that I run the following code to get more information:
All three calls return the error number -2146893802 (or 0x80090016) which according to this page is:
It looks like this might well be related to the other bug report
I have implemented the patch given in the other bug report and this fixes my problem. For the time being we'll use this modified version, but will use the official version when you release a new version.
Download ready ddl please.
I have the same problem which the patch fixes. My only remaining problem is that I cannot seem to build the new version of nsiscrypt without Microsoft Visual C Run Time dependencies.
How to use the patch ? Help me to understand