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.

crypto no longer works

See original GitHub issue

It looks like something broke crypto with changes pushed today. Did not investigate where the change came from so I am reporting it here.

To reproduce:

var crypto = require('crypto')

This will produce the following error:

index.js:3 Uncaught TypeError: Cannot read property 'toString' of undefined
    at Object.require.270.crypto (index.js:3)
    at s (_prelude.js:1)
    at _prelude.js:1
    at Object.require.164.browserify-cipher (index.js:12)
    at s (_prelude.js:1)
    at _prelude.js:1
    at Object.require.1.../../src/example (index.js:7)
    at s (_prelude.js:1)
    at e (_prelude.js:1)
    at _prelude.js:1

where:

crypto.pbkdf2Sync.toString()

will is called on undefined object, i.e. crypto.pbkdf2Sync is not defined.

Again, this regression is relatively new. Perhaps due to a change from today.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:4
  • Comments:10

github_iconTop GitHub Comments

2reactions
vivek0tiwaricommented, May 11, 2017

Issue is fixed in the new version of pbkdf2(3.0.12)

1reaction
pdparchitectcommented, May 11, 2017

Yes fixed!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Crypto Is Down Today? – Forbes Advisor
It's no longer a $1 trillion market. In a drastic set of events, the total market capitalization for crypto has slid to $870...
Read more >
Crypto peaked in Nov. 2021: Investors lost more than ... - CNBC
In June, the bottom fell out. Lending platform Celsius paused withdrawals because of “extreme market conditions.” Binance also halted ...
Read more >
Future Of Cryptocurrency in 2022 and Beyond - Time
While no one knows for sure, some experts say crypto prices could fall ... While there's still a long way to go, 2022...
Read more >
Crypto crash and gold sell-off show there's no place for ... - CNN
Over that longer time horizon, digital assets are still outperforming tech stocks,” said Jeff Dorman, chief investment officer at Arca, a firm ...
Read more >
Crypto's Horrible, No Good, Very Bad Year - Investopedia
The cryptocurrency market had a rough 2022, but it's far from dead. Next year holds the promise of more mainstream adoption and new...
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