RE: [PHP] Optimize simple file XOR code

2004-06-24 Thread Marcus Johansson
Wow! That REALLY did make a great difference! Encoding a file of 2MB took 50 seconds before, now it is done in 1 (ONE) second! My Key is 8192 bytes long, is that the reason for why it so much faster for me? I don't really get how it works, but I guess I will figure it out. Thank you very much! -

[PHP] Optimize simple file XOR code

2004-06-24 Thread Marcus Johansson
Hi! I'm using a very simple algorithm to encrypt files sent from the server "On Demand". The algorithm uses XOR for the encryption. My problem is that the code is very slow, it can only process about 40 KB per second on my system, so my question is, is there any more speed optimized way to write t