browserify / crypto-browserify

partial implementation of node's `crypto` for the browser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

when using pbkdf2Sync with rollup getting createhmac is not a function

last-Programmer opened this issue · comments

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.