René's URL Explorer Experiment


Title: Key usages should be an unique set · Issue #62899 · nodejs/node · GitHub

Open Graph Title: Key usages should be an unique set · Issue #62899 · nodejs/node

X Title: Key usages should be an unique set · Issue #62899 · nodejs/node

Description: > const k = await crypto.subtle.exportKey('jwk', await crypto.subtle.generateKey({name: "ChaCha20-Poly1305" }, true, ['encrypt'])) > await crypto.subtle.importKey('jwk', k, "ChaCha20-Poly1305", true, ['encrypt', 'encrypt']) CryptoKey { t...

Open Graph Description: > const k = await crypto.subtle.exportKey('jwk', await crypto.subtle.generateKey({name: "ChaCha20-Poly1305" }, true, ['encrypt'])) > await crypto.subtle.importKey('jwk', k, "ChaCha20-Poly1305", tru...

X Description: > const k = await crypto.subtle.exportKey('jwk', await crypto.subtle.generateKey({name: "ChaCha20-Poly1305" }, true, ['encrypt'])) > await crypto.subtle.importKey(&#...

Opengraph URL: https://github.com/nodejs/node/issues/62899

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Key usages should be an unique set","articleBody":"```js\n\u003e const k = await crypto.subtle.exportKey('jwk', await crypto.subtle.generateKey({name: \"ChaCha20-Poly1305\" }, true, ['encrypt']))\n\u003e await crypto.subtle.importKey('jwk', k, \"ChaCha20-Poly1305\", true, ['encrypt', 'encrypt'])\nCryptoKey {\n  type: 'secret',\n  extractable: true,\n  algorithm: { name: 'ChaCha20-Poly1305' },\n  usages: [ 'encrypt', 'encrypt' ] // duplicated\n}\n\u003e await crypto.subtle.exportKey('jwk', _)\n{\n  key_ops: [ 'encrypt', 'encrypt' ], // duplicated\n  ext: true,\n  alg: 'C20P',\n  kty: 'oct',\n  k: '...'\n}\n```\n\n```js\n\u003e const k = await crypto.subtle.exportKey('jwk', await crypto.subtle.generateKey({name: \"AES-GCM\", length: 256 }, true, ['encrypt']))\nundefined\n\u003e await crypto.subtle.importKey('jwk', k, {name: \"AES-GCM\", length: 256 }, true, ['encrypt', 'encrypt'])\nCryptoKey {\n  type: 'secret',\n  extractable: true,\n  algorithm: { name: 'AES-GCM', length: 256 },\n  usages: [ 'encrypt', 'encrypt' ] // duplicated\n}\n\u003e await crypto.subtle.exportKey('jwk', _)\n{\n  key_ops: [ 'encrypt', 'encrypt' ], // duplicated\n  ext: true,\n  alg: 'A256GCM',\n  kty: 'oct',\n  k: '...'\n}\n```\n\n```js\n\u003e k = await crypto.subtle.generateKey({ name: \"RSA-OAEP\", hash: \"SHA-256\", modulusLength: 2048, publicExponent: Uint8Array.of(1, 0, 1) }, true, [ 'encrypt', 'decrypt'])\n\u003e p = await crypto.subtle.exportKey('jwk', k.publicKey)\n\u003e await crypto.subtle.importKey('jwk', p, { name: \"RSA-OAEP\", hash: \"SHA-256\" }, true, ['encrypt', 'encrypt'])\nCryptoKey {\n  type: 'public',\n  extractable: true,\n  algorithm: {\n    name: 'RSA-OAEP',\n    modulusLength: 2048,\n    publicExponent: [Uint8Array],\n    hash: [Object]\n  },\n  usages: [ 'encrypt', 'encrypt' ] // duplicate\n}\n\u003e await crypto.subtle.exportKey('jwk', _)\n{\n  key_ops: [ 'encrypt', 'encrypt' ], // duplicate\n  ext: true,\n  alg: 'RSA-OAEP-256',\n  kty: 'RSA',\n  n: '...',\n  e: 'AQAB'\n}\n```\n\nChrome deduplicates:\n\n\u003cimg width=\"707\" height=\"117\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/f0356072-3441-49ec-b8b9-71b684709e4b\" /\u003e\n\nSource:\n\n### chacha20_poly1305\n\nhttps://github.com/nodejs/node/blob/HEAD/lib/internal/crypto/chacha20_poly1305.js#L143\n\n\u003cimg width=\"1066\" height=\"109\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/dc2d7727-e6b9-4090-8b7e-6dfb090c389b\" /\u003e\n\n### aes\n\nhttps://github.com/nodejs/node/blob/HEAD/lib/internal/crypto/aes.js#L288\n\n\u003cimg width=\"1066\" height=\"109\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/51de1d4d-5013-426d-873c-24f97d27cee1\" /\u003e\n\n### rsa\n\nhttps://github.com/nodejs/node/blob/HEAD/lib/internal/crypto/rsa.js#L284\n\n\u003cimg width=\"1051\" height=\"92\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/aa613aea-5e02-499e-b35e-2b0e738ea1aa\" /\u003e","author":{"url":"https://github.com/ChALkeR","@type":"Person","name":"ChALkeR"},"datePublished":"2026-04-22T21:47:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/62899/node/issues/62899"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:bcdf3fd5-bd90-ed21-0ab4-755ccc632e01
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC51E:21F6EA:266700F:3642C76:6A4CE530
html-safe-nonce840c4cecff24cd964729a70beb2dd0d344181ab864ec0ebec9f480cb25b7fdb3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTFFOjIxRjZFQToyNjY3MDBGOjM2NDJDNzY6NkE0Q0U1MzAiLCJ2aXNpdG9yX2lkIjoiMjI0MTI3Mzc4NjkyOTA0NjgzMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacfdc40ccded045526d7bbecff4bd66c26ab27d1ed5cbbe1c45c8974a6f261106f
hovercard-subject-tagissue:4312036086
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/62899/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e77d1dc75c31f7b07b8812359c91dc9bac722b0182267879a29dcfd78b1d103e/nodejs/node/issues/62899
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e77d1dc75c31f7b07b8812359c91dc9bac722b0182267879a29dcfd78b1d103e/nodejs/node/issues/62899
og:image:alt> const k = await crypto.subtle.exportKey('jwk', await crypto.subtle.generateKey({name: "ChaCha20-Poly1305" }, true, ['encrypt'])) > await crypto.subtle.importKey('jwk', k, "ChaCha20-Poly1305", tru...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameChALkeR
hostnamegithub.com
expected-hostnamegithub.com
None299b43bca6e02ad35197ffeba30d2466846d5fb02ab96fbced5b5e6cec589fb8
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec5a57f04eeb310f57c73fd6d751d957e2ca27ed2
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/node/issues/62899#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F62899
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F62899
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/62899
Reloadhttps://github.com/nodejs/node/issues/62899
Reloadhttps://github.com/nodejs/node/issues/62899
Please reload this pagehttps://github.com/nodejs/node/issues/62899
nodejs https://github.com/nodejs
nodehttps://github.com/nodejs/node
Please reload this pagehttps://github.com/nodejs/node/issues/62899
Notifications https://github.com/login?return_to=%2Fnodejs%2Fnode
Fork 36k https://github.com/login?return_to=%2Fnodejs%2Fnode
Star 118k https://github.com/login?return_to=%2Fnodejs%2Fnode
Code https://github.com/nodejs/node
Issues 1.4k https://github.com/nodejs/node/issues
Pull requests 961 https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality 0 https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Code https://github.com/nodejs/node
Issues https://github.com/nodejs/node/issues
Pull requests https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
#62902https://github.com/nodejs/node/pull/62902
Key usages should be an unique sethttps://github.com/nodejs/node/issues/62899#top
#62902https://github.com/nodejs/node/pull/62902
https://github.com/panva
cryptoIssues and PRs related to the crypto subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22crypto%22
web-standardsIssues and PRs related to Web APIshttps://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22web-standards%22
webcryptohttps://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22webcrypto%22
https://github.com/ChALkeR
ChALkeRhttps://github.com/ChALkeR
on Apr 22, 2026https://github.com/nodejs/node/issues/62899#issue-4312036086
https://private-user-images.githubusercontent.com/291301/582260567-f0356072-3441-49ec-b8b9-71b684709e4b.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODM0MjQ2MDUsIm5iZiI6MTc4MzQyNDMwNSwicGF0aCI6Ii8yOTEzMDEvNTgyMjYwNTY3LWYwMzU2MDcyLTM0NDEtNDllYy1iOGI5LTcxYjY4NDcwOWU0Yi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNzA3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDcwN1QxMTM4MjVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yZmQwZTNkYTZmMWRjYTE4NTU1NzFmMTE3YzJlNmY2ZGU4MzgwZDY3OWYyMGFiOWE1ODcxNzcxM2Y1MjhhZTMxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.IKQT8wq0jkCkxQZAlGbGW7Be_jeVVfaHnQ2NC5sKfOc
https://github.com/nodejs/node/blob/HEAD/lib/internal/crypto/chacha20_poly1305.js#L143https://github.com/nodejs/node/blob/HEAD/lib/internal/crypto/chacha20_poly1305.js#L143
https://private-user-images.githubusercontent.com/291301/582261337-dc2d7727-e6b9-4090-8b7e-6dfb090c389b.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODM0MjQ2MDUsIm5iZiI6MTc4MzQyNDMwNSwicGF0aCI6Ii8yOTEzMDEvNTgyMjYxMzM3LWRjMmQ3NzI3LWU2YjktNDA5MC04YjdlLTZkZmIwOTBjMzg5Yi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNzA3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDcwN1QxMTM4MjVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xMDQzNDljODRhMjE3ZDRlNDIxMzk3NGVlN2E3YmM5OTdiZjhhNWQyZjZmZTg4ZjlhMzJlOWFmZmFlZTU0YjIwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.dDWgSGrgSd_p6N9SQuz_SFC-b6T0GuZyQd86hQEVm5I
https://github.com/nodejs/node/blob/HEAD/lib/internal/crypto/aes.js#L288https://github.com/nodejs/node/blob/HEAD/lib/internal/crypto/aes.js#L288
https://private-user-images.githubusercontent.com/291301/582261113-51de1d4d-5013-426d-873c-24f97d27cee1.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODM0MjQ2MDUsIm5iZiI6MTc4MzQyNDMwNSwicGF0aCI6Ii8yOTEzMDEvNTgyMjYxMTEzLTUxZGUxZDRkLTUwMTMtNDI2ZC04NzNjLTI0Zjk3ZDI3Y2VlMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNzA3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDcwN1QxMTM4MjVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01YTRjNDU4MzM3Yjk5ZjJkMmYyNzI4OTczY2VhZWMyMTUzNDgwNDA2MGZhYTVhZmQwMTE2ODYzYWRhODc1OGViJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.kB_hS72PFx3GWnfJwIfAukW1wqY3teMfvGLvzYgJ4ZM
https://github.com/nodejs/node/blob/HEAD/lib/internal/crypto/rsa.js#L284https://github.com/nodejs/node/blob/HEAD/lib/internal/crypto/rsa.js#L284
https://private-user-images.githubusercontent.com/291301/582268576-aa613aea-5e02-499e-b35e-2b0e738ea1aa.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODM0MjQ2MDUsIm5iZiI6MTc4MzQyNDMwNSwicGF0aCI6Ii8yOTEzMDEvNTgyMjY4NTc2LWFhNjEzYWVhLTVlMDItNDk5ZS1iMzVlLTJiMGU3MzhlYTFhYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNzA3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDcwN1QxMTM4MjVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mZGZhOWE2MDk4ODk4N2RjZWJkZjJjNTM5NGExZWU0MTA2MGZjY2Q5NGZmYjI2NzNlMTUwNjQ0ZGU2YWViMTFiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.G_FRxdTXxkzZeQgxc5rcil2vrV1Cyfa62OnUU0vEjCw
panvahttps://github.com/panva
cryptoIssues and PRs related to the crypto subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22crypto%22
web-standardsIssues and PRs related to Web APIshttps://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22web-standards%22
webcryptohttps://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22webcrypto%22
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.