browserify / browserify/crypto-browserify
Error when try to use Diffie-Hellman properties
- Dominant language
- JavaScript
- Stars
- 681
- Forks
- 209
- PR merge metrics
- No merged PRs in 30d
Description
I want to use this library in my project to archive NodeJS crypto on browser.
I already downloaded the above package. In the given example it shows `createHash`. I want to use `.createDiffieHellman` etc. But, it rises error. Here is my code.
```
Welcome
console.log(require('crypto').createDiffieHellman(139));
```
and I facing error says, **Uncaught TypeError: require(...).createDiffieHellman is not a function** in the browser console.
Even I tried to change the code on my computer _project/node_modules/crypto-browserify/example/index.html_ and also tried to copy the repository from github, but result is same.
I can't understand what happen?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the reproduction in example/index.html and compare the available crypto-browserify exports with the requested createDiffieHellman call. Check whether relevant tests or documentation cover this API; done would require an agreed browser-supported behavior and verification that the reported call no longer fails.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- cryptography
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100