diff --git a/Cron/UpdateApiData.php b/Cron/UpdateApiData.php index f08bb61..03ad39f 100644 --- a/Cron/UpdateApiData.php +++ b/Cron/UpdateApiData.php @@ -102,7 +102,7 @@ public function execute(): void continue; } - $hash = md5($key . ':' . $secret); + $hash = hash('sha256', $key . ':' . $secret); $groupedScopes[$hash] ??= ['key' => $key, 'secret' => $secret, 'scopes' => []]; $groupedScopes[$hash]['scopes'][] = $scope; diff --git a/composer.json b/composer.json index 676d27a..947ebc0 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "postcode-nl/api-magento2-module", - "version": "4.1.0", + "version": "4.1.1", "description": "Postcode.eu Address Validation module for Magento 2. Adds autocompletion for addresses in multiple countries using official postal data.", "require": { "php": "^7.4 || ^8.0", diff --git a/etc/config.xml b/etc/config.xml index a2f9899..03ec38c 100644 --- a/etc/config.xml +++ b/etc/config.xml @@ -3,7 +3,7 @@ - 4.1.0 + 4.1.1 new