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

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
removed unused var_dump
  • Loading branch information
brainfoolong committed Jun 13, 2023
1 parent 4debd44 commit bdc1cc6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,14 @@ Also, there's a good article about PHP issues/info related to this library: http
* Does not work with following php.ini option enabled: http://php.net/manual/en/mbstring.overload.php

## Changelog
* 2.2.0 - 13\. June 2023
* 2.2.0 - 13. June 2023
* fixed implicit true to 1 conversion by using proper OPENSSL flag (thx @benjumanji)
* added tests for php and js
* show a warning for passphrases with non ASCII characters, as it is and was never supported
* 2.1.1 - 15\. January 2021
* added a js console warning for passphrases with non ASCII characters, as it is and was never supported
* minor improved php decrypt to avoid one useless hash cycle
* 2.1.1 - 15. January 2021
* just a few documentation and composer fixes
* 2.1.0 - 30\. December 2020
* 2.1.0 - 30. December 2020
* added quick decrypt and encrypt functions: `CryptoJSAesJson.encrypt()` and `CryptoJSAesJson.decrypt()` - See examples for more information
* 7\. April 2020
* 2.x.x - 7. April 2020
* Upgraded project to namespaces
4 changes: 1 addition & 3 deletions src/CryptoJsAes.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

use function strlen;

use function var_dump;

use const OPENSSL_RAW_DATA;

/**
Expand Down Expand Up @@ -56,7 +54,7 @@ public static function decrypt(string $jsonStr, string $passphrase)
$md5[0] = md5($concatedPassphrase, true);
$result = $md5[0];
$i = 1;
while(strlen($result) < 32) {
while (strlen($result) < 32) {
$md5[$i] = md5($md5[$i - 1] . $concatedPassphrase, true);
$result .= $md5[$i];
$i++;
Expand Down

0 comments on commit bdc1cc6

Please sign in to comment.