简体   繁体   中英

How open password protected archived file (zip) with server side languages like PHP?

is there any server side language like PHP that could open password protected files like zipped files? newest PHP version is supporting set password when you want to create a password protected zip file, but I could not find any way to open password protected files in PHP.

I want to save my files in a secure and password protected directory without any access even from host admin. I thought maybe it's the best way to save my files in a password protected zip file but maybe you had any other better suggestion. if yes, can you please give me a clue?

Thanks

If you don't trust the admin of the server, you should not encrypt your data on the server.

In order to do any encryption on the server, you need to either store the key on the server or at least transmit it when you encrypt or decrypt the files. The admin of the server is then able to get access to the key.

The only way to securely store data on an untrusted server is to do the encryption and decryption on your local machine and only upload the encrypted container.

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