how to use node-ffi with the crypt32.dll and CryptProtectData/CryptUnprotectData functions?
See original GitHub issuei want to use the node-ffi libary with the windows crypt32.dll to use data protection api and the functions “CryptProtectData” and “CryptUnprotectData”: (https://msdn.microsoft.com/de-de/library/windows/desktop/aa380261(v=vs.85).aspx).
i tried the following:
var crypt32 = new FFI.Library('crypt32',
{
'CryptProtectData': [
'int32', [ 'string', 'string', 'string', 'string', 'string', 'string', 'string' ]
]
});
but i am not sure in which way to use the variable types. how can i use the c++ type “DATA_BLOB” or a pointer in nodejs?
can you post a working sample for that case? thank you.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:5
- Comments:5
Top Results From Across the Web
Crypt32.dll Versions - Win32 apps - Microsoft Learn
dll is the module that implements many of the Certificate and Cryptographic Messaging functions in the CryptoAPI, such as CryptSignMessage.
Read more >CryptProtectData: C++ Code for calling function from Crypt32 ...
I am using "MAPI Download configuration guidance.docx" (can be downloaded from www .microsoft.com/en-us/download/details.aspx?id=39045 the piece of code ...
Read more >How to Fix Crypt32.dll Not Found or Missing Errors - Lifewire
A troubleshooting guide for crypt32.dll is missing and similar errors. ... If System Restore doesn't fix the DLL error, run System File ...
Read more >crypt32.dll Missing Error on Windows | 2020 | Fix #2 - YouTube
crypt32. dll Missing Error on Windows | 2020 | Fix #2. 2.8K views · 2 years ago ...more. STS Tutorial. 7.95K. Subscribe. 31....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I try …
It is working ok.
Below is a complete example that worked for me.