Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no crypto module? #35

Open
OneGoogus opened this issue Nov 1, 2021 · 0 comments
Open

no crypto module? #35

OneGoogus opened this issue Nov 1, 2021 · 0 comments

Comments

@OneGoogus
Copy link

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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant