Open Raktim123 opened 4 years ago
how did you bundle it ?
First off all I copied the bundle.js
file on my project root folder and then just add <script src="bundle.js"></script>
on my HTML file.
I observe two things that there are maybe one spelling mistake in bundle.js
(line 406) It's actually createDiffieHellman
not createDeffieHellman
and another is that only only createHash
was exported from bundle.js
if I call other it says message like 'it is not implemented yet'.
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.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/nodemodules/crypto-browserify/example/index.html and also tried to copy the repository from github, but result is same.
I can't understand what happen?