Home page logo
/

basics logo Security Basics mailing list archives

Re: splited file encrypted with blowfish secure?
From: Sam Stelfox <sstelfox () vtc vsc edu>
Date: Mon, 24 Nov 2008 10:37:12 -0500

Here look into this:

http://us3.php.net/ignore_user_abort

Even after the web requests times out the script will continue to run
until it's finished. You should just be able to add:

ignore_user_abort(1);

to the top of your php script.

Hope this helps.

Andre Pawlowski wrote:
From: Roscoe <eocsor_at_gmail.com>
Date: Sat, 8 Nov 2008 14:09:41 +1300

I've never written anything in PHP here so I might be way off...But a
16MB memory limitation would only stop you from reading the entire
file into memory at once.
The way I'd do would be to read/encrypt/write N blocks at a time.
[This is similar in principle to what you're doing, except without the
need for separate files or reinitialization of the block cipher mode.]

-- Roscoe
Received on Nov 10 2008

Sorry for the late answer. You are right. I can do it your way but
there is still another problem. PHP scripts normally timeout after
30seconds due to security reasons. So, I cannot encrypt/decrypt large
files. Because of that I split the file.




  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
AlienVault