Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use the Windows CryptoAPI from Python?

I am looking at using the Windows CryptoAPI from Python, but I can't find any existing modules for it - the win32crypt module that comes as part of the win32all suite only exposes a couple of high level functions that are of no use to me.

Are there any existing modules that wrap the CryptoAPI? Searching PyPi has come up with zip. Failing that example code on calling the API from ctypes, cython etc would be useful.

like image 474
Dave Kirby Avatar asked Jun 24 '26 17:06

Dave Kirby


1 Answers

This : How can I use a DLL file from Python? + Getting the addresses of the functions you need from Crypt32.dll should work.

like image 65
Sebastian-Laurenţiu Plesciuc Avatar answered Jun 27 '26 08:06

Sebastian-Laurenţiu Plesciuc



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!