You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using crypto-browserify or just browserify to require crypto i want to use the following:
constencryptedData=crypto.publicEncrypt({key: `some public key`,padding: crypto.constants.RSA_PKCS1_OAEP_PADDING,oaepHash: "sha256",},Buffer.from(password)// We convert the data string to a buffer using `Buffer.from` so we can manipulate the data using publicEncrypt)
But crypto.constants = undefined so I'm not sure what to do?
This issue has also been mentioned on browserify here and was requested to be moved to this repo as well.
The text was updated successfully, but these errors were encountered:
futurelucas4502
changed the title
crypto.constants = undefined when using const crypto = require("crypto")
crypto.constants = undefined
Aug 7, 2020
When using crypto-browserify or just browserify to require crypto i want to use the following:
But
crypto.constants = undefined
so I'm not sure what to do?This issue has also been mentioned on browserify here and was requested to be moved to this repo as well.
The text was updated successfully, but these errors were encountered: