Comments (6)
@dcousens any idea on how to fix this?
from crypto-browserify.
The easy solution is obvious. But, I think we can do better. (No idea on how yet)
from crypto-browserify.
Now you have:
- pbkdf2-compat code modified specifically for integration with crypto-browserify
- pbkdf.js which is a wrapper for pbkdf2-compat
- three lines in index.js
So there is a lot of extra code which implements integration, and it still doesn't work very well.
Isn't it obvious that it world be better if you add pbkdf2-compat code to crypto-browserify?
Sure, it's a bit ugly, but now you have a solution which is both ugly and has problems.
from crypto-browserify.
ah, okay the solution is quite simple, crypto-browserify needs to call
var pbkdf2 = require('pbkdf2-compat/pbkdf2') //instead of 'pbkdf2-compat'
//and then pass it self in
var tmp = pbkdf2(crypto)
crypto.pbkdf2 = tmp.pbkdf2
crypto.pbkdf2Sync = tmp.pbkdf2Sync
pbkdf2-compat
only does require('crypto')
from index, so this will work.
from crypto-browserify.
the solution was just this: 1aef109
from crypto-browserify.
published in [email protected]
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.