Comments (6)
moving the discussion of psudorandom over here, ping @ForbesLindesay, some options
- just have randomBytes and psudoRanomBytes do the same thing in this library
- create a library that using psudoRanomBytes in node and getRandomValues in the browser
- create a library that using psudoRanomBytes in node and uses getRandomValues to seed a prng (chacha/chacha20 would be a good bet).
from crypto-browserify.
with some quick googling the underlying functions are exactly the same except with psudoRandomBytes it doesn't throw an error if there is insufficient entropy http://stackoverflow.com/a/18131768
from crypto-browserify.
ok I made a pseudorandombytes, mainly for fun to be clear I don't think we should actually include this, there is really no reason to ever use pseudorandombytes in node so demand for this (which doesn't actually do the same thing) would be pretty low.
from crypto-browserify.
so as it turns out as of nodejs/node#557 which was just merged pseudoRandomBytes is an alias for randomBytes so we can probably do the same thing with it.
from crypto-browserify.
I'm happy with that decision.
from crypto-browserify.
👍
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.