问题
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