Skip to content

Commit e5a62c4

Browse files
authored
Merge pull request #714 from khanhkhanhlele/Fix/typos/20251107174548
docs: fix typos in some files
2 parents ed00f54 + 609841c commit e5a62c4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

vulnerabilities/cryptography/source/token_library_high.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
define ("IV", "1234567812345678");
66

77
function encrypt ($plaintext, $iv) {
8-
# Default padding is PKCS#7 which is interchangable with PKCS#5
8+
# Default padding is PKCS#7 which is interchangeable with PKCS#5
99
# https://en.wikipedia.org/wiki/Padding_%28cryptography%29#PKCS#5_and_PKCS#7
1010

1111
if (strlen ($iv) != 16) {
@@ -92,7 +92,7 @@ function check_token ($data) {
9292
$ciphertext = base64_decode ($data_array['token']);
9393
$iv = base64_decode ($data_array['iv']);
9494

95-
# Asssume failure
95+
# Assume failure
9696
$ret = array (
9797
"status" => 500,
9898
"message" => "Unknown error"

vulnerabilities/cryptography/source/token_library_impossible.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
define ("ALGO", "aes-256-gcm");
55

66
function encrypt ($plaintext, $iv) {
7-
# Default padding is PKCS#7 which is interchangable with PKCS#5
7+
# Default padding is PKCS#7 which is interchangeable with PKCS#5
88
# https://en.wikipedia.org/wiki/Padding_%28cryptography%29#PKCS#5_and_PKCS#7
99

1010
if (strlen ($iv) != 12) {
@@ -90,7 +90,7 @@ function check_token ($data) {
9090
$ciphertext = base64_decode ($data_array['token']);
9191
$iv = base64_decode ($data_array['iv']);
9292

93-
# Asssume failure
93+
# Assume failure
9494
$ret = array (
9595
"status" => 500,
9696
"message" => "Unknown error"

vulnerabilities/upload/help/help.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<br />
4040

4141
<h3>Impossible Level</h3>
42-
<p>This will check everything from all the levels so far, as well then to re-encode the image. This will make a new image, therefor stripping
42+
<p>This will check everything from all the levels so far, as well then to re-encode the image. This will make a new image, therefore stripping
4343
any "non-image" code (including metadata).</p>
4444
</div></td>
4545
</tr>

0 commit comments

Comments
 (0)