Using Javascript to decrypt password protected zip file

て烟熏妆下的殇ゞ 提交于 2019-12-24 22:29:18

问题


I'm trying to create a chrome extension that activates when it detects an encrypted zip file in Gmail. The encrypted zip contains an mp3 file. The password for the zip file will be known before hand. I want the chrome extension to decrypt the file using the known password and play it using Javascript.

This is my first time working with Chrome extensions but I believe I know how to code everything except the decryption of the zip file. After some research, I haven't been able to discover how to use existing libraries (like zip.js or jszip.js) to decrypt the zip file.

Any help would be appreciated. Thanks!


回答1:


I ended up decrypting the file using CryptoJS on the client side. Its surprisingly effective, even with 6+ min audio clips.



来源:https://stackoverflow.com/questions/23939560/using-javascript-to-decrypt-password-protected-zip-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!