简体   繁体   中英

Javascript Unzip/Decrypt Zip File Apache Cordova

I have a password protected zip file on my local storage (android phone) and want to open/read it. I can't open the protected zip file with the File Reader API. JSzip or cordova-plugin-zip doesn't support passwords as far as I know (There is no parameter for the password string)

1.) Have you any suggestion how I can encrypt the zip file?

2.) What if there is an option to do that, but the password string is in the javascript code. How can I avoid this?

Try to use this plugin to Encrypt/Decrypt files https://github.com/disusered/cordova-safe

You can send set Encrypt/Decrypt from JS

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM