I have asked this question before for React here.
I'm using crypto-es which is based on CryptoJS. I've used this is react like this
function decryptByDES(ciphertext) {
var keyHex = CryptoJS.enc.Utf8.parse("38346591");
// direct decrypt ciphertext
var decrypted = CryptoJS.DES.decrypt(
{
ciphertext: CryptoJS.enc.Base64.parse(ciphertext),
},
keyHex,
{
mode: CryptoJS.mode.ECB,
padding: CryptoJS.pad.Pkcs7,
}
);
return decrypted.toString(CryptoJS.enc.Utf8);
}
However using the same function in react-native gives me this error:

Test data:
encrypted text: "ID2ieOjCrwfgWvL5sXl4B1ImC5QfbsDycMwuqSNl+oXFQYM2ahEKHjJ8S9AMOijqZzashfXSBli0hxaWMyCdjhw7tS9a8Gtq"
expected decrypted result: https://aac.saavncdn.com/881/374283a91cd721f65f59e3a49e6f5623_96.mp4
secret key: 38346591