How to decrypt an ArrayBuffer?

前端 未结 2 1008
清歌不尽
清歌不尽 2020-12-13 16:20

I\'ve been trying to decrypt an ArrayBuffer object using CryptoJS, but so far it always returns a blank WordArray. The files (images) are encrypted in an iOS and Android app

2条回答
  •  自闭症患者
    2020-12-13 17:09

    you can use the web crypto API to directly decrypt arrayBuffer. No need to convert binary data to a string, which is so inefficient, and it could cause memory and CPU rises.

提交回复
热议问题