@@ -54,7 +54,7 @@ |
||
| 54 | 54 | */ |
| 55 | 55 | public function decrypt($data) |
| 56 | 56 | { |
| 57 | - $data = openssl_decrypt( |
|
| 57 | + $data = openssl_decrypt( |
|
| 58 | 58 | $data, |
| 59 | 59 | 'AES-128-ECB', |
| 60 | 60 | $this->key, |
@@ -18,11 +18,11 @@ |
||
| 18 | 18 | |
| 19 | 19 | $stopwatch->start('encrypt'); |
| 20 | 20 | |
| 21 | -for ($i = 0; $i < $amount; $i++ ) { |
|
| 21 | +for ($i = 0; $i < $amount; $i++) { |
|
| 22 | 22 | $encrypted = $crypter->encrypt(uniqid('', true)); |
| 23 | 23 | $decrypted = $crypter->decrypt($encrypted); |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | $event = $stopwatch->stop('encrypt'); |
| 27 | 27 | |
| 28 | -echo sprintf('%s items in %s seconds (%s ms), max. memory usage %sKB (%sB)', $amount, $event->getDuration()/1000, $event->getDuration(), $event->getMemory()/1024, $event->getMemory()) . PHP_EOL; |
|
| 29 | 28 | \ No newline at end of file |
| 29 | +echo sprintf('%s items in %s seconds (%s ms), max. memory usage %sKB (%sB)', $amount, $event->getDuration() / 1000, $event->getDuration(), $event->getMemory() / 1024, $event->getMemory()) . PHP_EOL; |
|
| 30 | 30 | \ No newline at end of file |