Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 526 Bytes

File metadata and controls

13 lines (10 loc) · 526 Bytes

Python cryptography

This sample computes SHA-256 with generated Windows Runtime cryptography APIs and verifies the result against Python's hashlib.

It demonstrates copied bytes/IBuffer conversion, static WinRT APIs, and digest extraction without files, hardware, or network access. Both conversion directions own their copy; no native buffer pointer escapes.

.\generate.ps1 -Codegen ..\..\..\target\release\dynwinrt-codegen.exe
.\run.ps1 -Python C:\path\to\python.exe -Text "Hello from dynwinrt."