Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

Access window.crypto from vscode web extension

$
0
0

I need to migrate my vscode extension to web (vscode.dev). So I need to polyfil some node.js libraries.I would like to replace crypto (rsa) node.js by web api window.crypto, but I didn't find a way to access window global object from vscode runtime. (https://developer.mozilla.org/en-US/docs/Web/API/Crypto)

I tried crypto-browserify library, but it doesn't have generateKeyPair implementationIt's a little bit better with node-forge library

But I would like to use build-in browser functionality

Be able to use window.crypto API from vscode web runtime.

  • not from vscode.WebView, but from extension.ts for example

Thanks


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>