Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

Commit bdc1cc6

Browse files
committed
updated readme
removed unused var_dump
1 parent 4debd44 commit bdc1cc6

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,14 @@ Also, there's a good article about PHP issues/info related to this library: http
7979
* Does not work with following php.ini option enabled: http://php.net/manual/en/mbstring.overload.php
8080

8181
## Changelog
82-
* 2.2.0 - 13\. June 2023
82+
* 2.2.0 - 13. June 2023
83+
* fixed implicit true to 1 conversion by using proper OPENSSL flag (thx @benjumanji)
8384
* added tests for php and js
84-
* show a warning for passphrases with non ASCII characters, as it is and was never supported
85-
* 2.1.1 - 15\. January 2021
85+
* added a js console warning for passphrases with non ASCII characters, as it is and was never supported
86+
* minor improved php decrypt to avoid one useless hash cycle
87+
* 2.1.1 - 15. January 2021
8688
* just a few documentation and composer fixes
87-
* 2.1.0 - 30\. December 2020
89+
* 2.1.0 - 30. December 2020
8890
* added quick decrypt and encrypt functions: `CryptoJSAesJson.encrypt()` and `CryptoJSAesJson.decrypt()` - See examples for more information
89-
* 7\. April 2020
91+
* 2.x.x - 7. April 2020
9092
* Upgraded project to namespaces

src/CryptoJsAes.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
use function strlen;
66

7-
use function var_dump;
8-
97
use const OPENSSL_RAW_DATA;
108

119
/**
@@ -56,7 +54,7 @@ public static function decrypt(string $jsonStr, string $passphrase)
5654
$md5[0] = md5($concatedPassphrase, true);
5755
$result = $md5[0];
5856
$i = 1;
59-
while(strlen($result) < 32) {
57+
while (strlen($result) < 32) {
6058
$md5[$i] = md5($md5[$i - 1] . $concatedPassphrase, true);
6159
$result .= $md5[$i];
6260
$i++;

0 commit comments

Comments
 (0)