Skip to content

no crypto module? #35

Description

@OneGoogus

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);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions