-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement cypto.createHash
#177
Comments
Hi. What is your deployment/runtime that does not support |
Hi there, thanks for the quick response! I am not a pro when it comes to the JS world, so I am not sure if this is the correct piece of information. Essentially, it is this tiny nuxt project that I am working on: integritee-network/try-incognitee-app#10. Frramework: Nuxt 3.11.2 with Nitro 2.9.6 ╭────────────────────────────────────────Preview Mode──────────────────────────────────────────╮
│ │
│ You are running Nuxt production build in preview mode. │
│ For production deployments, please directly use node ./server/index.mjs command. │
│ │
│ Node.js: v21.7.3 │
│ Nitro Preset: node-server │
│ Working directory: .output │
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────╯
|
Unfortunately, I just realized that I will probably need more than only this function as an RSA library needs this polyfill, so I guess unenv is probably not the right solution as most of the crypto polyfills are not implemented... |
Thanks again for the swift answer! I mean the crypto is running in the browser, and I was checking the code in export const createDecipheriv = notImplemented("crypto.createDecipheriv");
export const createDiffieHellman = notImplemented("crypto.createDiffieHellman");
export const createDiffieHellmanGroup = notImplemented("crypto.createDiffieHellmanGroup");
export const createECDH = notImplemented("crypto.createECDH");
export const createHash = notImplemented("crypto.createHash");
export const createHmac = notImplemented("crypto.createHmac");
export const createPrivateKey = notImplemented("crypto.createPrivateKey");
export const createPublicKey = notImplemented("crypto.createPublicKey");
export const createSecretKey = notImplemented("crypto.createSecretKey"); This is the log that I saw in the browser that made me think that I am on the right track: Am I doing something wrong? Any pointer would be appreciated. |
Oh right. Yes, they are node.js specific APIs we didn't implement in the browser let me to reopen to investigate how hard it would be to support them. |
I'm encountering the same issue here. I'm trying to use |
This comment was marked as off-topic.
This comment was marked as off-topic.
I was lucky that I had access to the library depending on nodes' crypto. So I was able to rewrite the crypto with the webcrypto api, encointer/encointer-js#101. Not sure if this helps anybody. |
Having kinda the same problem using |
Describe the feature
This is currently a showstopper for our project
Additional information
The text was updated successfully, but these errors were encountered: