TypeError: _reactNativeCryptoJs.default.HmacMD5.encrypt is not a function.
Hi All, I'm using this package to generate HmacMD5 hash string in my application. with the below code in my function, I'm able to generate AES encrypted String.
import CryptoJS from "react-native-crypto-js";
...
function getHash() {
let ciphertext = CryptoJS.AES.encrypt('my message', 'secret key 123').toString();
console.log("ciphertext: ", ciphertext);
}
...
But when I replaced the AES with HmacMD5 in the above code, I'm ending up with the below error.
TypeError: _reactNativeCryptoJs.default.HmacMD5.encrypt is not a function. (In '_reactNativeCryptoJs.default.HmacMD5.encrypt('my message', 'secret key 123')', '_reactNativeCryptoJs.default.HmacMD5.encrypt' is undefined)
I have the same issue
Hi everyone, Does anyone please help here.
TypeError: _reactNativeCryptoJs.default.HmacSHA1 is not a function
packager : Pnpm react-native: 0.69.7 react: 18.0.0 "react-native-crypto-js": "^1.0.0",