Skip to content

Commit b9917f2

Browse files
authoredFeb 24, 2019
xtea.class.php -> XTEA.class.php
1 parent 1d05c96 commit b9917f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ XTEA implementation in PHP
55

66
```php
77
<?php
8-
require_once('xtea.class.php');
8+
require_once('XTEA.class.php');
99
$key_binary = random_bytes(4 * 4);
1010
$keys_array = XTEA::binary_key_to_int_array($key_binary);
1111
$data = "Hello, World!";
@@ -36,7 +36,7 @@ Stack trace:
3636
because the XTEA algorithm requires data-to-encrypt to be in multiples of 8 bytes. but if we change it to
3737
```php
3838
<?php
39-
require_once('xtea.class.php');
39+
require_once('XTEA.class.php');
4040
$keys_binary = random_bytes(4 * 4);
4141
$keys_array = XTEA::binary_key_to_int_array($keys_binary);
4242
$data = "Hello, World!123";
@@ -64,7 +64,7 @@ running this benchmark script:
6464
```php
6565
<?php
6666
declare (strict_types = 1);
67-
require_once('xtea.class.php');
67+
require_once('XTEA.class.php');
6868
$keys_binary = random_bytes(4 * 4);
6969
$keys_array = XTEA::binary_key_to_int_array($keys_binary);
7070
$data = random_bytes(1 * 1024); // 1KB

0 commit comments

Comments
 (0)