Home page logo

basics logo Security Basics mailing list archives

Re: splited file encrypted with blowfish secure?
From: Roscoe <eocsor () gmail com>
Date: Sat, 8 Nov 2008 14:09:41 +1300

On Wed, Nov 5, 2008 at 6:32 AM, Andre Pawlowski <sqall () h4des org> wrote:
Hash: SHA1

Hi all,

I have a question about the security of my encryption. I have written
a program in php which splits a file in small parts, encrypts each of
them with blowfish and put it together. It uses the same key for every
encryption of the parts. The reason I do it like this is that php is
only allowed
to use 16MB of memory space and so it cannot encrypt or decrypt large

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

  By Date           By Thread  

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