Replacing the module crypto
See original GitHub issueHi,
I’m opening this issue to know if you are open to replacing the use of crypto
for more browser-friendly libraries like create-hmac
and randombytes
.
I’ve had a hard time using this library with Rollup, which led me to bundling my own version here: https://github.com/ethereum/js-ethereum-cryptography/tree/master/hdkey-without-crypto-config
I’d love not to have to do that, and the needed change is really small. I can prepare a PR for this, making sure that the builtin implementations are used on node.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Can the crypto module replace bcryptjs and jsonwebtoken ...
no, crypto module doesn't implement JWT, what code you don't use by not using a package you would need to write to replace...
Read more >ModuleNotFoundError: No module named 'Crypto' in Python
To solve the error, install the module by running the pip install pycryptodome command.
Read more >ModuleNotFoundError No module named Crypto - Edureka
I am trying to run this line in python. from Crypto.Cipher import AES. But I am getting this error ModuleNotFoundError: No module named...
Read more >Install Guide - Crypto
Mac OSX GPG Install ... with the Mac GPG Tools Suite installer, or by compiling and installing from the source. ... The installed...
Read more >Node.js crypto module: A tutorial - LogRocket Blog
Learn how to use the Node.js crypto module to secure user data and review the basics of cryptography in Node.js.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m leading an effort to remove native dependencies (except N-API based ones) from the Ethereum js ecosystem. Why?
As part of this process, I’m also making sure that the dependencies being used work well with web bundlers and don’t produce unnecessarily large bundles.
The problems with the
crypto
module are:crypto-browserify
, which is HUGE.Why
hdkey
and notbip32
?hdkey
is more popular in the Ethereum ecosystem, so migrating to a portable version of it is easier than migrating tobip32
. This is especially important because this effort requires the buy-in of multiple open source projects.Thanks for the heads up, @junderw!