browserify / crypto-browserify

partial implementation of node's `crypto` for the browser
MIT License
653 stars 199 forks source link

when using pbkdf2Sync with rollup getting createhmac is not a function #222

Open last-Programmer opened 1 year ago

last-Programmer commented 1 year ago

We re using pbkdf2sync in our application and we use rollup with esm bundling.

When we run our application we get error

Uncaught (in promise) TypeError: createHmac$1 is not a function at pbkdf2 (sync.js:37:13) at Encryption.getHash (Encryption.ts:16:13) at Controller.ts:173:32

Thanks in advance for the help.