We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
The text was updated successfully, but these errors were encountered:
I'm stuck.. anybody there ?
Sorry, something went wrong.
Same problem with version 4.1.1
4.1.1
I'm guessing here 😄 The README says
var CryptoJS = require("crypto-js"); console.log(CryptoJS.HmacSHA1("Message", "Key"));
So maybe this could work
const hmac256 = require('crypto-js/hmac-sha256) const hash = hmac256(message, password)
or
const cryptojs = require("crypto-js"); console.log(cryptojs.HmacSHA256("Message", "Key"));
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: