I want encryption and decryption of a Uint8Array for that i have downloaded CryptoJS library from this link.
I have tested aes cipher algorithm on a dummy string its working fine.
Now i want it to implement it on Uint8Array. This array is holding a video file data.
Since the encryption and decryption works on a string, i have to convert it to a string for that i have referenced this question posted on the stackoverflow click here
Code for encryption is :
var encrypted = CryptoJS.AES.encrypt(String.fromCharCode.apply(null, uInt8Array), "test");
But when i ran the code following error is coming:
Uncaught RangeError: Maximum call stack size exceeded
How do i make it working?