File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ XTEA implementation in PHP
5
5
6
6
``` php
7
7
<?php
8
- require_once('xtea .class.php');
8
+ require_once('XTEA .class.php');
9
9
$key_binary = random_bytes(4 * 4);
10
10
$keys_array = XTEA::binary_key_to_int_array($key_binary);
11
11
$data = "Hello, World!";
@@ -36,7 +36,7 @@ Stack trace:
36
36
because the XTEA algorithm requires data-to-encrypt to be in multiples of 8 bytes. but if we change it to
37
37
``` php
38
38
<?php
39
- require_once('xtea .class.php');
39
+ require_once('XTEA .class.php');
40
40
$keys_binary = random_bytes(4 * 4);
41
41
$keys_array = XTEA::binary_key_to_int_array($keys_binary);
42
42
$data = "Hello, World!123";
@@ -64,7 +64,7 @@ running this benchmark script:
64
64
``` php
65
65
<?php
66
66
declare (strict_types = 1);
67
- require_once('xtea .class.php');
67
+ require_once('XTEA .class.php');
68
68
$keys_binary = random_bytes(4 * 4);
69
69
$keys_array = XTEA::binary_key_to_int_array($keys_binary);
70
70
$data = random_bytes(1 * 1024); // 1KB
You can’t perform that action at this time.
0 commit comments