René's URL Explorer Experiment


Title: feat(runtime): crypto.subtle by triniwiz · Pull Request #49 · NativeScript/windows · GitHub

Open Graph Title: feat(runtime): crypto.subtle by triniwiz · Pull Request #49 · NativeScript/windows

X Title: feat(runtime): crypto.subtle by triniwiz · Pull Request #49 · NativeScript/windows

Description: Adds crypto.subtle and CryptoKey, backed by CNG (bcrypt). Supported digest: SHA-1, SHA-256, SHA-384, SHA-512 HMAC: generateKey, importKey/exportKey (raw, jwk), sign, verify AES-GCM (128/256-bit keys, 96-bit IV, 128-bit tag): generateKey, importKey/exportKey (raw, jwk), encrypt, decrypt PBKDF2 and HKDF: importKey (raw), deriveBits, deriveKey (to HMAC or AES-GCM) Anything else rejects with NotSupportedError. Other failures reject with the WebCrypto error names. Behaviour matches the Linux runtime. Design runtime/src/subtle.rs holds all the logic: algorithm normalization, usage checks, JWK handling and errors. It works against a small Js trait that each engine implements. subtle/backend.rs does the CNG work: BCryptHash (digest and HMAC), BCryptEncrypt/BCryptDecrypt with BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO (AES-GCM), BCryptDeriveKeyPBKDF2, and RFC 5869 HKDF over CNG HMAC. Bindings for the classic engine (subtle_v8.rs) and the napi engine (napi_engine/subtle.rs), both exposed as __nsSubtle. crypto.js forwards each method to __nsSubtle and wraps the result in a promise. Hosts that already provide crypto.subtle keep their own. Adds the Win32_Security_Cryptography feature of windows. Tests Unit tests in runtime/src/subtle/tests.rs using FIPS 180, RFC 4231, NIST GCM, RFC 6070 and RFC 5869 vectors. crypto_subtle in interop_test.rs runs the same vectors through JS.

Open Graph Description: Adds crypto.subtle and CryptoKey, backed by CNG (bcrypt). Supported digest: SHA-1, SHA-256, SHA-384, SHA-512 HMAC: generateKey, importKey/exportKey (raw, jwk), sign, verify AES-GCM (128/256-bit ke...

X Description: Adds crypto.subtle and CryptoKey, backed by CNG (bcrypt). Supported digest: SHA-1, SHA-256, SHA-384, SHA-512 HMAC: generateKey, importKey/exportKey (raw, jwk), sign, verify AES-GCM (128/256-bit ke...

Opengraph URL: https://github.com/NativeScript/windows/pull/49

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:16b625d6-63fc-354d-099a-cce8759618b3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE808:269AD9:1FE6B13:2A996C2:6B017CAB
html-safe-nonceb014ecd5728a077e7508dedcf813556b9fb40cefbba920a257d86102c45b8a4a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODA4OjI2OUFEOToxRkU2QjEzOjJBOTk2QzI6NkIwMTdDQUIiLCJ2aXNpdG9yX2lkIjoiMzI3MDY2MjQwMjc5ODA5MTQzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6c61f309c1dc177179ecb42e6c32bcc5755890d8417b214f442fa2d75fe6f9b8
hovercard-subject-tagpull_request:5214820136
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/NativeScript/windows/pull/49/files
twitter:imagehttps://avatars.githubusercontent.com/u/6695919?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/6695919?s=400&v=4
og:image:altAdds crypto.subtle and CryptoKey, backed by CNG (bcrypt). Supported digest: SHA-1, SHA-256, SHA-384, SHA-512 HMAC: generateKey, importKey/exportKey (raw, jwk), sign, verify AES-GCM (128/256-bit ke...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/NativeScript/windows git https://github.com/NativeScript/windows.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id373653886
octolytics-dimension-repository_nwoNativeScript/windows
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id373653886
octolytics-dimension-repository_network_root_nwoNativeScript/windows
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/NativeScript/windows/pull/49/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fwindows%2Fpull%2F49%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fwindows%2Fpull%2F49%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=NativeScript%2Fwindows
Reloadhttps://github.com/NativeScript/windows/pull/49/files
Reloadhttps://github.com/NativeScript/windows/pull/49/files
Reloadhttps://github.com/NativeScript/windows/pull/49/files
NativeScripthttps://github.com/NativeScript
windowshttps://github.com/NativeScript/windows
Codehttps://github.com/NativeScript/windows
Issueshttps://github.com/NativeScript/windows/issues
Pull requestshttps://github.com/NativeScript/windows/pulls
Actionshttps://github.com/NativeScript/windows/actions
Projectshttps://github.com/NativeScript/windows/projects
Security and qualityhttps://github.com/NativeScript/windows/security
Insightshttps://github.com/NativeScript/windows/insights
Sign up for GitHub https://github.com/signup?return_to=%2FNativeScript%2Fwindows%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FNativeScript%2Fwindows%2Fissues%2Fnew%2Fchoose
triniwizhttps://github.com/triniwiz
mainhttps://github.com/NativeScript/windows/tree/main
feat/crypto-subtlehttps://github.com/NativeScript/windows/tree/feat/crypto-subtle
Conversation 1 https://github.com/NativeScript/windows/pull/49
Commits 1 https://github.com/NativeScript/windows/pull/49/commits
Checks 3 https://github.com/NativeScript/windows/pull/49/checks
Files changed https://github.com/NativeScript/windows/pull/49/files
Please reload this pagehttps://github.com/NativeScript/windows/pull/49/files
feat(runtime): crypto.subtle https://github.com/NativeScript/windows/pull/49/files#top
Show all changes 1 commit https://github.com/NativeScript/windows/pull/49/files
c956a8f feat(runtime): crypto.subtle triniwiz Nov 8, 2026 https://github.com/NativeScript/windows/pull/49/commits/c956a8f04bf441152054a02c21885ef82f2145b3
Clear filters https://github.com/NativeScript/windows/pull/49/files
Please reload this pagehttps://github.com/NativeScript/windows/pull/49/files
Please reload this pagehttps://github.com/NativeScript/windows/pull/49/files
Cargo.toml https://github.com/NativeScript/windows/pull/49/files#diff-6431a3eec6e102bbcffb94387cda89efbe02002649745273fb575234c0018de4
global_fns.rs https://github.com/NativeScript/windows/pull/49/files#diff-41874e2589e6177e724b0b19cd7803dca1f32990ebfabb633334a7c8fe453944
interop_test.rs https://github.com/NativeScript/windows/pull/49/files#diff-588bd4f2448bad955418079aca65126a36007370b7f02aa853cef200f0285e8b
crypto.js https://github.com/NativeScript/windows/pull/49/files#diff-50720578ab87244c6b90122776849cac3004d62df114cc1c4d2d8f22c76a4f13
lib.rs https://github.com/NativeScript/windows/pull/49/files#diff-0ec06ea58bd455f09ce6b3bb4c2c1c0d37bda51c1e1be2151c560c9c973959ec
interop.rs https://github.com/NativeScript/windows/pull/49/files#diff-376b4e9cde9060ae6494bece0bdda1e165bb49d6d2ed77a00c1743745037a331
mod.rs https://github.com/NativeScript/windows/pull/49/files#diff-f17c4e7871d0f3328e069caddc321b6589d38c82a83140fd58d98ef40eb81589
subtle.rs https://github.com/NativeScript/windows/pull/49/files#diff-98c633da0558d25bd1a1003968f3fac370abc432582362e49a0b0f9cc02b95a6
subtle.rs https://github.com/NativeScript/windows/pull/49/files#diff-fe9e40af661a6545c5012dc710ef30d449a33a5adb54f5c1ea5222864d1b4f31
backend.rs https://github.com/NativeScript/windows/pull/49/files#diff-879e719a61a5ccd079532b14238d94f66380f4035f2fbdd0a588442afe5d4200
tests.rs https://github.com/NativeScript/windows/pull/49/files#diff-785054ae138b606616c1de3a1d0916d2f5a887c4e9691fc0d342f2b1e8b2f2a5
subtle_v8.rs https://github.com/NativeScript/windows/pull/49/files#diff-e693dcbd8f5f666378e9182befb6128ff5fbe32ff40dadf34ade439fa7b1d918
runtime/Cargo.tomlhttps://github.com/NativeScript/windows/pull/49/files#diff-6431a3eec6e102bbcffb94387cda89efbe02002649745273fb575234c0018de4
View file https://github.com/NativeScript/windows/blob/c956a8f04bf441152054a02c21885ef82f2145b3/runtime/Cargo.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/windows/pull/49/{{ revealButtonHref }}
https://github.com/NativeScript/windows/pull/49/files#diff-6431a3eec6e102bbcffb94387cda89efbe02002649745273fb575234c0018de4
https://github.com/NativeScript/windows/pull/49/files#diff-6431a3eec6e102bbcffb94387cda89efbe02002649745273fb575234c0018de4
runtime/src/global_fns.rshttps://github.com/NativeScript/windows/pull/49/files#diff-41874e2589e6177e724b0b19cd7803dca1f32990ebfabb633334a7c8fe453944
View file https://github.com/NativeScript/windows/blob/c956a8f04bf441152054a02c21885ef82f2145b3/runtime/src/global_fns.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/windows/pull/49/{{ revealButtonHref }}
https://github.com/NativeScript/windows/pull/49/files#diff-41874e2589e6177e724b0b19cd7803dca1f32990ebfabb633334a7c8fe453944
https://github.com/NativeScript/windows/pull/49/files#diff-41874e2589e6177e724b0b19cd7803dca1f32990ebfabb633334a7c8fe453944
runtime/src/interop_test.rshttps://github.com/NativeScript/windows/pull/49/files#diff-588bd4f2448bad955418079aca65126a36007370b7f02aa853cef200f0285e8b
View file https://github.com/NativeScript/windows/blob/c956a8f04bf441152054a02c21885ef82f2145b3/runtime/src/interop_test.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/windows/pull/49/{{ revealButtonHref }}
https://github.com/NativeScript/windows/pull/49/files#diff-588bd4f2448bad955418079aca65126a36007370b7f02aa853cef200f0285e8b
https://github.com/NativeScript/windows/pull/49/files#diff-588bd4f2448bad955418079aca65126a36007370b7f02aa853cef200f0285e8b
runtime/src/js/crypto.jshttps://github.com/NativeScript/windows/pull/49/files#diff-50720578ab87244c6b90122776849cac3004d62df114cc1c4d2d8f22c76a4f13
View file https://github.com/NativeScript/windows/blob/c956a8f04bf441152054a02c21885ef82f2145b3/runtime/src/js/crypto.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/windows/pull/49/{{ revealButtonHref }}
https://github.com/NativeScript/windows/pull/49/files#diff-50720578ab87244c6b90122776849cac3004d62df114cc1c4d2d8f22c76a4f13
https://github.com/NativeScript/windows/pull/49/files#diff-50720578ab87244c6b90122776849cac3004d62df114cc1c4d2d8f22c76a4f13
runtime/src/lib.rshttps://github.com/NativeScript/windows/pull/49/files#diff-0ec06ea58bd455f09ce6b3bb4c2c1c0d37bda51c1e1be2151c560c9c973959ec
View file https://github.com/NativeScript/windows/blob/c956a8f04bf441152054a02c21885ef82f2145b3/runtime/src/lib.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/windows/pull/49/{{ revealButtonHref }}
https://github.com/NativeScript/windows/pull/49/files#diff-0ec06ea58bd455f09ce6b3bb4c2c1c0d37bda51c1e1be2151c560c9c973959ec
https://github.com/NativeScript/windows/pull/49/files#diff-0ec06ea58bd455f09ce6b3bb4c2c1c0d37bda51c1e1be2151c560c9c973959ec
runtime/src/napi_engine/interop.rshttps://github.com/NativeScript/windows/pull/49/files#diff-376b4e9cde9060ae6494bece0bdda1e165bb49d6d2ed77a00c1743745037a331
View file https://github.com/NativeScript/windows/blob/c956a8f04bf441152054a02c21885ef82f2145b3/runtime/src/napi_engine/interop.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/windows/pull/49/{{ revealButtonHref }}
https://github.com/NativeScript/windows/pull/49/files#diff-376b4e9cde9060ae6494bece0bdda1e165bb49d6d2ed77a00c1743745037a331
https://github.com/NativeScript/windows/pull/49/files#diff-376b4e9cde9060ae6494bece0bdda1e165bb49d6d2ed77a00c1743745037a331
runtime/src/napi_engine/mod.rshttps://github.com/NativeScript/windows/pull/49/files#diff-f17c4e7871d0f3328e069caddc321b6589d38c82a83140fd58d98ef40eb81589
View file https://github.com/NativeScript/windows/blob/c956a8f04bf441152054a02c21885ef82f2145b3/runtime/src/napi_engine/mod.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/windows/pull/49/{{ revealButtonHref }}
https://github.com/NativeScript/windows/pull/49/files#diff-f17c4e7871d0f3328e069caddc321b6589d38c82a83140fd58d98ef40eb81589
https://github.com/NativeScript/windows/pull/49/files#diff-f17c4e7871d0f3328e069caddc321b6589d38c82a83140fd58d98ef40eb81589
runtime/src/napi_engine/subtle.rshttps://github.com/NativeScript/windows/pull/49/files#diff-98c633da0558d25bd1a1003968f3fac370abc432582362e49a0b0f9cc02b95a6
View file https://github.com/NativeScript/windows/blob/c956a8f04bf441152054a02c21885ef82f2145b3/runtime/src/napi_engine/subtle.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/windows/pull/49/{{ revealButtonHref }}
Please reload this pagehttps://github.com/NativeScript/windows/pull/49/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.