Skip to content

crypto.createHmac is not a function in React Native  #355

Open
@goodfriendshanthosh

Description

@goodfriendshanthosh

Package.json
"crypto-js": "3.1.9-1"

metro.config.js
inlineRequires: true

const crypto = require('crypto-js');

const secret = 'ABC';

const hash = crypto.createHmac('sha256', secret)
.update('UPDATING')
.digest('hex');

console.log(hash)

Error: crypto.createHmac is not a function in React Native

followed this, but error still exist #259

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