Welcome Guest, Not a member yet? Register   Sign In
File encryption / decription in CodeIgniter
#8

[eluser]WanWizard[/eluser]
You can also do it via cron in the background.

Have the files uploaded to a temporary location, and do not publish them directly after upload. Use a cron script to poll this directory, use GnuPG to encrypt them and store the encrypted versions in their final destination. Then start a piece of commandline PHP which updates the published state of the file, so it's available for download. Offcourse, for downloads the decryption has to be realtime. And that might be a factor too, your download request shouldn't timeout.

Any idea of the volume of uploads and downloads, lets say per hour? And the CPU specs and current load of this private server? I'm not afraid of memory (unless you're really short), but encryption/decryption can use lots of CPU. For that reason my Apache reverse proxies all use hardware offloaders for SSL.


Messages In This Thread
File encryption / decription in CodeIgniter - by El Forum - 09-24-2010, 06:45 AM
File encryption / decription in CodeIgniter - by El Forum - 09-24-2010, 07:32 AM
File encryption / decription in CodeIgniter - by El Forum - 09-24-2010, 07:37 AM
File encryption / decription in CodeIgniter - by El Forum - 09-24-2010, 07:47 AM
File encryption / decription in CodeIgniter - by El Forum - 09-24-2010, 07:56 AM
File encryption / decription in CodeIgniter - by El Forum - 09-24-2010, 08:13 AM
File encryption / decription in CodeIgniter - by El Forum - 09-24-2010, 09:08 AM
File encryption / decription in CodeIgniter - by El Forum - 09-24-2010, 04:23 PM
File encryption / decription in CodeIgniter - by El Forum - 09-24-2010, 04:47 PM
File encryption / decription in CodeIgniter - by El Forum - 06-17-2011, 08:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB