DavidJMancini
Registered User.
- Local time
- Today, 01:04
- Joined
- Feb 3, 2017
- Messages
- 12
So a while back I implemented my own VBA Cryptographically Secure Pseudo-Random Number Generator (CSPRNG) by using a call to MS API for Microsoft Strong Cryptographic Provider. It spits out random bytes 0-255 (00000000-11111111) in a cryptographically secure fashion. The call is accomplished through several DLL function declarations (calling "advapi32.dll") in the VBA module.
The problem here is that my call to CryptAcquireContext() is NOT giving me a cryptographic context.... but only on some computers. It worked just fine on the machine I built it on... but not on other people's machines. It's NOT a Reference issue; the DLL exists, and none of the calls in the module rely on a VBE Reference. I've tried Microsoft Enhanced Cryptographic Provider... no good. All zeros.
I've attached a sample database with demo form.
The problem here is that my call to CryptAcquireContext() is NOT giving me a cryptographic context.... but only on some computers. It worked just fine on the machine I built it on... but not on other people's machines. It's NOT a Reference issue; the DLL exists, and none of the calls in the module rely on a VBE Reference. I've tried Microsoft Enhanced Cryptographic Provider... no good. All zeros.
I've attached a sample database with demo form.