I'm looking to encrypt files uploaded to my web server using a key provided by the upload user. Then, downloading the file later would require the original key. Are there any suggestions for doing this in PHP? Any open source solutions?
that doesn't feel like a great idea to me. the data is still unencrypted at the weak points of the chain (the transfer from server to browser). crypting on the server side would only be necessary if the physical or logical security of the server was not good, in which case i'd rather focus on improving those than an encryption routine at the server side.
alternatively why not get the user to do the encrytion client side and upload the encrypted file.
failing all of that, consider using the mcrypt functions
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.