@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Dcrypt\Examples; |
4 | 4 | |
5 | -class Aes256Base64 extends \Dcrypt\Aes256Gcm |
|
6 | -{ |
|
5 | +class Aes256Base64 extends \Dcrypt\Aes256Gcm |
|
6 | +{ |
|
7 | 7 | public static function decrypt(string $data, string $key): string |
8 | 8 | { |
9 | 9 | return parent::decrypt(\base64_decode($data), $key); |
@@ -7,8 +7,8 @@ |
||
7 | 7 | * |
8 | 8 | * This is useful for medium security situations where minimal space consumption is important. |
9 | 9 | */ |
10 | -class TinyFish extends \Dcrypt\OpensslBridge |
|
11 | -{ |
|
10 | +class TinyFish extends \Dcrypt\OpensslBridge |
|
11 | +{ |
|
12 | 12 | /** |
13 | 13 | * Specify using blowfish ofb cipher method |
14 | 14 | * |
@@ -10,9 +10,9 @@ discard block |
||
10 | 10 | |
11 | 11 | $vectors = __DIR__ . '/../tests/.vectors.json'; |
12 | 12 | |
13 | -if (file_exists($vectors)) { |
|
13 | +if (file_exists($vectors)) { |
|
14 | 14 | $key = json_decode(file_get_contents($vectors))->key; |
15 | -} else { |
|
15 | +} else { |
|
16 | 16 | $key = \Dcrypt\OpensslKey::create(); |
17 | 17 | } |
18 | 18 | |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | ]; |
26 | 26 | |
27 | 27 | foreach (\Dcrypt\OpensslSupported::ciphers() as $cipher) { |
28 | - if (strtolower($cipher) !== $cipher) { |
|
28 | + if (strtolower($cipher) !== $cipher) { |
|
29 | 29 | continue; |
30 | 30 | } |
31 | 31 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | } |
38 | 38 | |
39 | 39 | foreach (\Dcrypt\OpensslSupported::algos() as $algo) { |
40 | - if (strtolower($algo) !== $algo) { |
|
40 | + if (strtolower($algo) !== $algo) { |
|
41 | 41 | continue; |
42 | 42 | } |
43 | 43 |