Simply configure your web server to use SSL. Then the files (and indeed the whole HTTP response) are encrypted on the server, and decrypted automatically on the client side.
Even better, you don't have to deal with encryption in your own code (which is always a hairy subject to get right), and your users don't have to mess with manually decrypting files. Big win for everybody, I'd say.
In reply to Re: Encrypt files on server and then decrypt when user downloads
by moritz
in thread Encrypt files on server and then decrypt when user downloads
by MPM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |