Comments (7)
OK, after discovering a bug in the createHmac
in [email protected]
(latest in Browserify) v3, I figured this out. Not sure if the bug exists in the 2.x
version, but I'll find out shortly.
This should work for anyone who is in the same position.
- Clone
crypto-browserify
- Install NPM deps
- Build it:
browserify < index.js > crypto-browserify.js
- In your app's
package.json
file, add the following field:
"browser": {
"crypto": "./crypto-browserify.js"
}
(Obviously copy crypto-browserify.js
to your app's repo and change the path accordingly)
from crypto-browserify.
Actually, that doesn't work. I get the following error:
Error: module "./support/isBuffer" not found from "/Users/jp/js/cryptocoin/pbkdf2-sha256/crypto-browserify.js"
Any thoughts?
from crypto-browserify.
When opening crypto-browserify.js
it's clear that Buffer
is in there.
from crypto-browserify.
Don't create a separate bundle for crypto-browserify. Just do npm install crypto-browserify
and add "browser": {"crypto": "crypto-browserify"}
to package.json.
from crypto-browserify.
@tonistiigi but what if I actually want to modify crypto-browserify
?
from crypto-browserify.
Installing from npm doesn't forbid you of changing the source in any way. If you want to change and share back the changes with git then there are lots of ways. I usually make a clone somewhere, then run npm link
from the clone and npm link crypto-browserify
from the project code folder.
from crypto-browserify.
I think this can be closed now :p
from crypto-browserify.
Related Issues (20)
- [Security] update browserify-sign to the latest HOT 3
- the argument to define auth tag length in crypto.createDecipheriv cannot work HOT 1
- generateKeyPair (Sync) missing HOT 3
- Special characters in encryption key - different output
- Add a quickstart guide to documentation HOT 1
- Add support for SHA3
- Usage without polyfills HOT 6
- Missing crypto.randomUUID HOT 1
- Missing crypto.getRandomValues
- typescript support HOT 5
- Module not found error while building react app on Ubuntu HOT 8
- Crypto Module not found
- Is there a reason crypto.subtle is missing in most polyfills including this one? HOT 1
- when using pbkdf2Sync with rollup getting createhmac is not a function
- Is this package safe to use in 2023? HOT 1
- feat: crypto.randomInt([min, ]max[, callback])
- Homepage in package.json is wrong (error 404) HOT 1
- Status of this project HOT 1
- Performance issue when running standalone HOT 8
- randomBytes is required from randombytes which requires from crypto HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crypto-browserify.