Data is now incompressible

This commit is contained in:
dosse91 2016-11-28 21:09:12 +01:00
parent ec223a45d4
commit d9c320aee4
3 changed files with 26 additions and 28 deletions

View file

@ -1,5 +1,5 @@
<?php
// Disable Compression (would be too easy for 000...)
// Disable Compression
@ini_set('zlib.output_compression', 'Off');
@ini_set('output_buffering', 'Off');
@ini_set('output_handler', '');
@ -15,8 +15,8 @@ header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
// Generate data
$data=str_repeat("0",1048575)."\n";
// Deliver chunks of 1048576 bytes (or more - depending on encoding!)
$data=openssl_random_pseudo_bytes(1048576,false);
// Deliver chunks of 1048576 bytes
while(1){
echo $data;
flush();