{"_id":"@bun-win32/crypt32","_rev":"8-ce651a8e7983a88b0cfe0c02ff7b3ff4","name":"@bun-win32/crypt32","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"@bun-win32/crypt32","version":"1.0.0","keywords":["bun","ffi","win32","windows","crypt32","certificate","cryptography","bindings","typescript","dll"],"author":{"name":"Stev Peifer","email":"stev@bell.net"},"license":"MIT","_id":"@bun-win32/crypt32@1.0.0","maintainers":[{"name":"obscuritysrl","email":"stev@bell.net"}],"homepage":"https://github.com/ObscuritySRL/bun-win32#readme","bugs":{"url":"https://github.com/ObscuritySRL/bun-win32/issues"},"dist":{"shasum":"317db82166ef452acf515918ec2a074294a65342","tarball":"https://registry.npmjs.org/@bun-win32/crypt32/-/crypt32-1.0.0.tgz","fileCount":5,"integrity":"sha512-Z9KCXvPQJTEtjW4uXpPzZFTqtF/fPERzfFY/M5ZNu+1XYDEfbSWOUp5PfcJeckAVnH03iRVDyUsF7Y0ZUPVfOw==","signatures":[{"sig":"MEUCIC+9ew1MSETrgkicesScItDKzX+4RLfBAFT5CaW6k3ruAiEA+mnVvMgixAJbbFMiI37S/0mWrX/dsjYKJ/5wNYI6vQA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":130574},"main":"./index.ts","type":"module","module":"index.ts","engines":{"bun":">=1.1.0"},"exports":{".":"./index.ts"},"gitHead":"8a2e81682ff4972cc616726f8bbe21689154b99c","private":false,"scripts":{"example":"bun ./example/crypt32.ts"},"_npmUser":{"name":"obscuritysrl","email":"stev@bell.net"},"repository":{"url":"git://github.com/ObscuritySRL/bun-win32.git","type":"git","directory":"packages/crypt32"},"_npmVersion":"10.1.0","description":"Zero-dependency, zero-overhead Win32 CRYPT32 bindings for Bun (FFI) on Windows.","directories":{},"sideEffects":false,"_nodeVersion":"20.8.0","dependencies":{"@bun-win32/core":"workspace:*"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/crypt32_1.0.0_1775500098988_0.4524266506855332","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@bun-win32/crypt32","version":"1.0.1","keywords":["bun","ffi","win32","windows","crypt32","certificate","cryptography","bindings","typescript","dll"],"author":"Stev Peifer <stev@bell.net>","license":"MIT","_id":"@bun-win32/crypt32@1.0.1","maintainers":[{"name":"obscuritysrl","email":"stev@bell.net"}],"homepage":"https://github.com/ObscuritySRL/bun-win32#readme","bugs":{"url":"https://github.com/ObscuritySRL/bun-win32/issues"},"dist":{"shasum":"30753e61a4e1e68354244f26327383aa95675ba3","tarball":"https://registry.npmjs.org/@bun-win32/crypt32/-/crypt32-1.0.1.tgz","fileCount":6,"integrity":"sha512-QG7KF2J3H0IxGJlhPd1o7udVWjSCxwkerTlOfm6kimPJqtcXxLrvlEn2io8XpU1TdaLvxlZSVL3wqjk996HyvQ==","signatures":[{"sig":"MEUCIQCxP7A36HBhm2NqJFC6xvoCZJz1DVRVa7E/6fLpOjM/MAIgOY0x1rgcnLkHCx6J+CuOcRrGUrOcTFLtPdFZzVZ7JzQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":132798},"main":"./index.ts","type":"module","module":"index.ts","shasum":"30753e61a4e1e68354244f26327383aa95675ba3","engines":{"bun":">=1.1.0"},"exports":{".":"./index.ts"},"private":false,"scripts":{"example":"bun ./example/crypt32.ts"},"_npmUser":{"name":"obscuritysrl","email":"stev@bell.net"},"_integrity":"sha512-QG7KF2J3H0IxGJlhPd1o7udVWjSCxwkerTlOfm6kimPJqtcXxLrvlEn2io8XpU1TdaLvxlZSVL3wqjk996HyvQ==","repository":{"url":"git://github.com/ObscuritySRL/bun-win32.git","type":"git","directory":"packages/crypt32"},"_npmVersion":"10.8.3","description":"Zero-dependency, zero-overhead Win32 CRYPT32 bindings for Bun (FFI) on Windows.","directories":{},"sideEffects":false,"_nodeVersion":"24.3.0","dependencies":{"@bun-win32/core":"1.1.1"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/crypt32_1.0.1_1775514750124_0.6303842394461718","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@bun-win32/crypt32","version":"1.0.2","keywords":["bun","ffi","win32","windows","crypt32","certificate","cryptography","bindings","typescript","dll"],"author":{"name":"Stev Peifer","email":"stev@bell.net"},"license":"MIT","_id":"@bun-win32/crypt32@1.0.2","maintainers":[{"name":"obscuritysrl","email":"stev@bell.net"}],"homepage":"https://github.com/ObscuritySRL/bun-win32#readme","bugs":{"url":"https://github.com/ObscuritySRL/bun-win32/issues"},"dist":{"shasum":"17ddfab610bef93119895935642d6214dfa8a6ae","tarball":"https://registry.npmjs.org/@bun-win32/crypt32/-/crypt32-1.0.2.tgz","fileCount":6,"integrity":"sha512-LSB1ZH9qw9wqdWtf6R0huC15VYkLPoshdZLvQlnLHqq5ssmcRtOLQY7BahWKyQUjHob5Htp/K2Eve+Yxy4I/gg==","signatures":[{"sig":"MEUCIQCj3GHQreN1eWVSaMhjGLP5dQAAUjtxWaax1Skk/otiXwIgPLjRuKs9G7P/QP60Ey+Lf4264NTCPNqOBsoJGMJND7c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":133145},"main":"./index.ts","type":"module","module":"index.ts","engines":{"bun":">=1.1.0"},"exports":{".":"./index.ts"},"gitHead":"f86f0df557aa6cfee8907bf3af5592855a854c15","private":false,"scripts":{"example":"bun ./example/crypt32.ts"},"_npmUser":{"name":"obscuritysrl","email":"stev@bell.net"},"repository":{"url":"git://github.com/ObscuritySRL/bun-win32.git","type":"git","directory":"packages/crypt32"},"_npmVersion":"10.1.0","description":"Zero-dependency, zero-overhead Win32 CRYPT32 bindings for Bun (FFI) on Windows.","directories":{},"sideEffects":false,"_nodeVersion":"20.8.0","dependencies":{"@bun-win32/core":"workspace:*"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/crypt32_1.0.2_1775584482417_0.278826300203848","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@bun-win32/crypt32","version":"1.0.3","keywords":["bun","ffi","win32","windows","crypt32","certificate","cryptography","bindings","typescript","dll"],"author":"Stev Peifer <stev@bell.net>","license":"MIT","_id":"@bun-win32/crypt32@1.0.3","maintainers":[{"name":"obscuritysrl","email":"stev@bell.net"}],"homepage":"https://github.com/ObscuritySRL/bun-win32#readme","bugs":{"url":"https://github.com/ObscuritySRL/bun-win32/issues"},"dist":{"shasum":"f88bf06949bd79597a91782411acd7e08fb46e59","tarball":"https://registry.npmjs.org/@bun-win32/crypt32/-/crypt32-1.0.3.tgz","fileCount":6,"integrity":"sha512-1bnfz3J2s3nt8kVvJBm3nPuKzNwb4hpmh5T5zMTYr6MwLV8Gu9OjAuN8tvzt72lHfpEyhVWfcsC7lBhqmQuDuA==","signatures":[{"sig":"MEUCIQDPy6oKdLAVA9v3EUJboQ7nBwrWGAs1d/n0VSX2PLIVmQIgbXvC4A3zCVDcrsqSSb/m+yeHwDZcTyzFR/3Ph3HiGeM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":133197},"main":"./index.ts","type":"module","module":"index.ts","shasum":"f88bf06949bd79597a91782411acd7e08fb46e59","engines":{"bun":">=1.1.0"},"exports":{".":"./index.ts"},"private":false,"scripts":{"example":"bun ./example/crypt32.ts"},"_npmUser":{"name":"obscuritysrl","email":"stev@bell.net"},"_integrity":"sha512-1bnfz3J2s3nt8kVvJBm3nPuKzNwb4hpmh5T5zMTYr6MwLV8Gu9OjAuN8tvzt72lHfpEyhVWfcsC7lBhqmQuDuA==","repository":{"url":"git://github.com/ObscuritySRL/bun-win32.git","type":"git","directory":"packages/crypt32"},"_npmVersion":"10.8.3","description":"Zero-dependency, zero-overhead Win32 CRYPT32 bindings for Bun (FFI) on Windows.","directories":{},"sideEffects":false,"_nodeVersion":"24.3.0","dependencies":{"@bun-win32/core":"1.1.1"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/crypt32_1.0.3_1775616177389_0.8721922824659731","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@bun-win32/crypt32","version":"1.0.4","keywords":["bun","ffi","win32","windows","crypt32","certificate","cryptography","bindings","typescript","dll"],"author":"Stev Peifer <stev@bell.net>","license":"MIT","_id":"@bun-win32/crypt32@1.0.4","maintainers":[{"name":"obscuritysrl","email":"stev@bell.net"}],"homepage":"https://github.com/ObscuritySRL/bun-win32#readme","bugs":{"url":"https://github.com/ObscuritySRL/bun-win32/issues"},"dist":{"shasum":"f3c378da568645739a95ddef6fe9249d305c0722","tarball":"https://registry.npmjs.org/@bun-win32/crypt32/-/crypt32-1.0.4.tgz","fileCount":6,"integrity":"sha512-wEMjJukViV8w/p8BALmEBxAXyZXV4cbEKSgsdCW+6o6PvCvOZ9EmnJCBwhRtUjZjdWB3e/m2vRWosviR8ZFPdA==","signatures":[{"sig":"MEUCIGbWwR2IAMceA/zd2FP40NzoypL2XCNTtUPJPtP72hd7AiEAk4pQnkMb2hv2tN0idfSQkK2+ed7mJxOPzXrbf+vUVRg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":133456},"main":"./index.ts","type":"module","module":"index.ts","shasum":"f3c378da568645739a95ddef6fe9249d305c0722","engines":{"bun":">=1.1.0"},"exports":{".":"./index.ts"},"private":false,"scripts":{"example:secret-vault":"bun ./example/secret-vault.ts","example:certificate-inspector":"bun ./example/certificate-inspector.ts"},"_npmUser":{"name":"obscuritysrl","email":"stev@bell.net"},"_integrity":"sha512-wEMjJukViV8w/p8BALmEBxAXyZXV4cbEKSgsdCW+6o6PvCvOZ9EmnJCBwhRtUjZjdWB3e/m2vRWosviR8ZFPdA==","repository":{"url":"git://github.com/ObscuritySRL/bun-win32.git","type":"git","directory":"packages/crypt32"},"_npmVersion":"10.8.3","description":"Zero-dependency, zero-overhead Win32 CRYPT32 bindings for Bun (FFI) on Windows.","directories":{},"sideEffects":false,"_nodeVersion":"24.3.0","dependencies":{"@bun-win32/core":"1.1.1"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","@bun-win32/kernel32":"1.0.20"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/crypt32_1.0.4_1775687643055_0.8958490746962691","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@bun-win32/crypt32","version":"1.0.5","keywords":["bun","ffi","win32","windows","crypt32","certificate","cryptography","bindings","typescript","dll"],"author":"Stev Peifer <stev.p@outlook.com>","license":"MIT","_id":"@bun-win32/crypt32@1.0.5","maintainers":[{"name":"obscuritysrl","email":"stev@bell.net"}],"homepage":"https://github.com/ObscuritySRL/bun-win32#readme","bugs":{"url":"https://github.com/ObscuritySRL/bun-win32/issues"},"dist":{"shasum":"3533615b1bfc42e89a582aff28057b1b14cbb61d","tarball":"https://registry.npmjs.org/@bun-win32/crypt32/-/crypt32-1.0.5.tgz","fileCount":6,"integrity":"sha512-wCiDeiz8WDsIJnmnvRl8WrWqakgJXfhTjpt0MJS1uR0ln+X7ILotwRAWrNezeyHLxckldbIXTDd3nPIt9BsHBA==","signatures":[{"sig":"MEQCIGvOwepppQl64MDXZOy5YizQgmDkUtSXJXzdFNW7gXcgAiArFod84K2xk+hb/TiX94ltiZSBOy1feSSbuxVekwLXXw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":133461},"main":"./index.ts","type":"module","module":"index.ts","shasum":"3533615b1bfc42e89a582aff28057b1b14cbb61d","engines":{"bun":">=1.1.0"},"exports":{".":"./index.ts"},"private":false,"scripts":{"example:secret-vault":"bun ./example/secret-vault.ts","example:certificate-inspector":"bun ./example/certificate-inspector.ts"},"_npmUser":{"name":"obscuritysrl","email":"stev@bell.net"},"_integrity":"sha512-wCiDeiz8WDsIJnmnvRl8WrWqakgJXfhTjpt0MJS1uR0ln+X7ILotwRAWrNezeyHLxckldbIXTDd3nPIt9BsHBA==","repository":{"url":"git://github.com/ObscuritySRL/bun-win32.git","type":"git","directory":"packages/crypt32"},"_npmVersion":"10.8.3","description":"Zero-dependency, zero-overhead Win32 CRYPT32 bindings for Bun (FFI) on Windows.","directories":{},"sideEffects":false,"_nodeVersion":"24.3.0","dependencies":{"@bun-win32/core":"1.1.4"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","@bun-win32/kernel32":"1.0.26"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/crypt32_1.0.5_1781130806576_0.6358817020674212","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@bun-win32/crypt32","version":"2.0.0","keywords":["bun","ffi","win32","windows","crypt32","certificate","cryptography","bindings","typescript","dll"],"author":"Stev Peifer <stev.p@outlook.com>","license":"MIT","_id":"@bun-win32/crypt32@2.0.0","maintainers":[{"name":"obscuritysrl","email":"stev.p@outlook.com"}],"homepage":"https://github.com/ObscuritySRL/bun-win32#readme","bugs":{"url":"https://github.com/ObscuritySRL/bun-win32/issues"},"dist":{"shasum":"f933e9874a349488c4ddbefaf29f9b83254933b2","tarball":"https://registry.npmjs.org/@bun-win32/crypt32/-/crypt32-2.0.0.tgz","fileCount":6,"integrity":"sha512-ZtOR4u262c/ezXtPMadILBkAhhOe0gL3NjpXVMB4IBMOSnGymLqGbmq34fTfPr643A7Xcce4rUBeZoVftGhIpw==","signatures":[{"sig":"MEYCIQCczzcM+yVSPkAGKM5x2gOVR9oiwANxLAkyL/VTFAdA/AIhALvAv67/USrYk0uqk9RuD8WFi/gqF1/k09H6BGLLWLc+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":138291},"main":"./index.ts","type":"module","module":"index.ts","shasum":"f933e9874a349488c4ddbefaf29f9b83254933b2","engines":{"bun":">=1.1.0"},"exports":{".":"./index.ts"},"private":false,"scripts":{"example:secret-vault":"bun ./example/secret-vault.ts","example:certificate-inspector":"bun ./example/certificate-inspector.ts"},"_npmUser":{"name":"obscuritysrl","email":"stev.p@outlook.com"},"_integrity":"sha512-ZtOR4u262c/ezXtPMadILBkAhhOe0gL3NjpXVMB4IBMOSnGymLqGbmq34fTfPr643A7Xcce4rUBeZoVftGhIpw==","repository":{"url":"git://github.com/ObscuritySRL/bun-win32.git","type":"git","directory":"packages/crypt32"},"_npmVersion":"10.8.3","description":"Zero-dependency, zero-overhead Win32 CRYPT32 bindings for Bun (FFI) on Windows.","directories":{},"sideEffects":false,"_nodeVersion":"26.3.0","dependencies":{"@bun-win32/core":"2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","@bun-win32/kernel32":"2.0.0"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/crypt32_2.0.0_1782435285099_0.10887757535844522","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"author":"Stev Peifer <stev.p@outlook.com>","bugs":{"url":"https://github.com/ObscuritySRL/bun-win32/issues"},"dependencies":{"@bun-win32/core":"2.0.1"},"description":"Zero-dependency, zero-overhead Win32 CRYPT32 bindings for Bun (FFI) on Windows.","devDependencies":{"@bun-win32/kernel32":"2.0.1","@types/bun":"latest"},"exports":{".":"./index.ts"},"license":"MIT","module":"index.ts","name":"@bun-win32/crypt32","peerDependencies":{"typescript":"^5"},"private":false,"homepage":"https://github.com/ObscuritySRL/bun-win32#readme","repository":{"type":"git","url":"git://github.com/ObscuritySRL/bun-win32.git","directory":"packages/crypt32"},"type":"module","version":"2.0.1","main":"./index.ts","keywords":["bun","ffi","win32","windows","crypt32","certificate","cryptography","bindings","typescript","dll"],"sideEffects":false,"engines":{"bun":">=1.1.0"},"scripts":{"example:secret-vault":"bun ./example/secret-vault.ts","example:certificate-inspector":"bun ./example/certificate-inspector.ts"},"_id":"@bun-win32/crypt32@2.0.1","_integrity":"sha512-721yuox9+izD6AkUR+QWq1wzIfQ9joZxh1H7KoghCNyNCqN4wDUJA3raNBG/WjapJ8QzH8PJm7+xBz9flED+pA==","_nodeVersion":"26.3.0","_npmVersion":"10.8.3","shasum":"7a45dc70a5db4926878de491235d783d185ac008","dist":{"integrity":"sha512-721yuox9+izD6AkUR+QWq1wzIfQ9joZxh1H7KoghCNyNCqN4wDUJA3raNBG/WjapJ8QzH8PJm7+xBz9flED+pA==","shasum":"7a45dc70a5db4926878de491235d783d185ac008","tarball":"https://registry.npmjs.org/@bun-win32/crypt32/-/crypt32-2.0.1.tgz","fileCount":6,"unpackedSize":138291,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAPxmC+zXjc3YpHWdfET9SIqQYmW6kRZmbgzx/bj/eV4AiEAsm8MgPZTtiCqMdOtXZ0I/5LxwBW1k4HedQqyo38ngWs="}]},"_npmUser":{"name":"obscuritysrl","email":"stev.p@outlook.com"},"directories":{},"maintainers":[{"name":"obscuritysrl","email":"stev.p@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/crypt32_2.0.1_1782437743497_0.9221820280435957"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-06T18:28:18.875Z","modified":"2026-06-26T01:35:43.770Z","1.0.0":"2026-04-06T18:28:19.128Z","1.0.1":"2026-04-06T22:32:30.288Z","1.0.2":"2026-04-07T17:54:42.584Z","1.0.3":"2026-04-08T02:42:57.529Z","1.0.4":"2026-04-08T22:34:03.210Z","1.0.5":"2026-06-10T22:33:26.767Z","2.0.0":"2026-06-26T00:54:45.236Z","2.0.1":"2026-06-26T01:35:43.639Z"},"bugs":{"url":"https://github.com/ObscuritySRL/bun-win32/issues"},"author":"Stev Peifer <stev.p@outlook.com>","license":"MIT","homepage":"https://github.com/ObscuritySRL/bun-win32#readme","keywords":["bun","ffi","win32","windows","crypt32","certificate","cryptography","bindings","typescript","dll"],"repository":{"type":"git","url":"git://github.com/ObscuritySRL/bun-win32.git","directory":"packages/crypt32"},"description":"Zero-dependency, zero-overhead Win32 CRYPT32 bindings for Bun (FFI) on Windows.","maintainers":[{"name":"obscuritysrl","email":"stev.p@outlook.com"}],"readme":"# @bun-win32/crypt32\r\n\r\nZero-dependency, zero-overhead Win32 Crypt32 bindings for [Bun](https://bun.sh) on Windows.\r\n\r\n## Overview\r\n\r\n`@bun-win32/crypt32` exposes the `crypt32.dll` exports using [Bun](https://bun.sh)'s FFI. It provides a single class, `Crypt32`, which lazily binds native symbols on first use. You can optionally preload a subset or all symbols up-front via `Preload()`.\r\n\r\nThe bindings are strongly typed for a smooth DX in TypeScript.\r\n\r\n## Features\r\n\r\n- [Bun](https://bun.sh)-first ergonomics on Windows 10/11.\r\n- Direct FFI to `crypt32.dll` (certificate stores, certificate chains, encoding/decoding, data protection, signing, and more).\r\n- In-source docs in `structs/Crypt32.ts` with links to Microsoft Docs.\r\n- Lazy binding on first call; optional eager preload (`Crypt32.Preload()`).\r\n- No wrapper overhead; calls map 1:1 to native APIs.\r\n- Strongly-typed Win32 aliases (see `types/Crypt32.ts`).\r\n\r\n## Requirements\r\n\r\n- [Bun](https://bun.sh) runtime\r\n- Windows 10 or later\r\n\r\n## Installation\r\n\r\n```sh\r\nbun add @bun-win32/crypt32\r\n```\r\n\r\n## Quick Start\r\n\r\n```ts\r\nimport Crypt32 from '@bun-win32/crypt32';\r\n\r\n// Open the current user's personal certificate store\r\nconst store = Crypt32.CertOpenSystemStoreW(0n, Buffer.from('MY\\0', 'utf16le').ptr);\r\n\r\n// Enumerate certificates\r\nlet cert = Crypt32.CertEnumCertificatesInStore(store, null);\r\nlet count = 0;\r\nwhile (cert !== null) {\r\n  count++;\r\n  cert = Crypt32.CertEnumCertificatesInStore(store, cert);\r\n}\r\nconsole.log('Found %d certificates in MY store', count);\r\n\r\nCrypt32.CertCloseStore(store, 0);\r\n```\r\n\r\n> [!NOTE]\r\n> AI agents: see `AI.md` for the package binding contract and source-navigation guidance. It explains how to use the package without scanning the entire implementation.\r\n\r\n## Examples\r\n\r\nRun the included examples:\r\n\r\n```sh\r\nbun run example\r\n```\r\n\r\n## Notes\r\n\r\n- Either rely on lazy binding or call `Crypt32.Preload()`.\r\n- Windows only. Bun runtime required.\n- **SAL types & naming:** nullability is in the **type** — `Optional<T>` (formally optional, SAL `_*opt_`) and `Nullable<T>` (plain `[in]`/`[out]` the docs say can be NULL), the null sentinel derived from `T` (`null` for pointers `LP*`/`P*`, `0n` for handles/by-value addresses); direction is in the **parameter name** — `_out` (`_Out_`), `_in_out` (`_Inout_`), `_In_` bare. See `AI.md` and the repo `AGENTS.md`.\n","readmeFilename":"README.md"}