question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with 'crypto' Module

See original GitHub issue

Hey,

I’m currently using the ccxt library with a Meteor application I’m developing - it’s a brilliant library and has been a great help, so thank you! The issue is the use of Node’s crypto module, which causes confusion with NPM over an old, deprecated package of the same name, from what I gather. As a result I get a conflict error when compiling my app.

Uncaught Error: Cannot find module 'crypto'

I can bypass the issue during development by simply deleting the deprecated crypto module from my node_modules folder, however when I go to deploy I don’t have control over this. Do you know anyway around this, or would it be possible to implement another cryptographic module like crypto-js? Or is the only option to fork & make the ammendment myself?

Thanks for any advice you can offer.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
kroitorcommented, Jul 15, 2017

Yeah, I think I will rewrite the Node.js HMAC/hash code to crypto-js (aka CryptoJS). It is already used for browser-specific ccxt implementation, so I will also switch to it under Node as well. I’ll update you on the progress, should be ready by tomorrow (if nothing extraordinary comes up).

0reactions
x5enginecommented, Feb 20, 2018

indeed well done and module crypto is ugly!

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native: crypto module problem · Issue #595 - GitHub
Crypto dependency problem on React Native Having upgraded to React Native 0.65.1, I now get the following error when building the app: ...
Read more >
crypto module - IBM
The crypto module offers a set of APIs for cryptographic usage. It provides the hash, HMAC, cipher, decipher, sign, and verify methods.
Read more >
Module not found: Error: Can't resolve 'crypto' - Stack Overflow
I ran into a similar issue lately while trying to use another library (tiff.js) in a small project I was experimenting with.
Read more >
Crypto | Node.js v19.3.0 Documentation
The node:crypto module provides cryptographic functionality that includes a set of wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign, ...
Read more >
PGP Encrypt operation of crypto module fails in FIPS enabled ...
Applications using PGP Encrypt operation fails processing requests, specifically in FIPS enabled environments. There is a known issue identified ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found