no crypto module?
Opened this issue · 0 comments
OneGoogus commented
Hi
Im trying to fetch some api values from a website, but im needed to login in first.
But in order to login, it require me to encrypt the body with hmac-sha256 for login.
But when im trying to use crypto in order to login, the console reply:
❌ Script Error
⚠️ ReferenceError: crypto is not defined
at HMac-test.js:1:14
at processTicksAndRejections (internal/process/task_queues.js:97:5)
I tried to find a purejs version of hmac to bypass instead, but had no luck.
any chance of supporting crypto?
const hmac = crypto.createHmac('sha256', 'test').update('jsonlogin').digest('hex');
console.log(hmac);