mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 09:38:23 +01:00
Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
@@ -153,7 +153,7 @@ function dolEncrypt($chain, $key = '', $ciphering = 'AES-256-CTR', $forceseed =
|
||||
if (empty($forceseed)) {
|
||||
$ivseed = dolGetRandomBytes($ivlen);
|
||||
} else {
|
||||
$ivseed = dol_trunc(md5($forceseed), $ivlen, 'right', 'UTF-8', 1);
|
||||
$ivseed = dol_substr(md5($forceseed), 0, $ivlen, 'ascii', 1);
|
||||
}
|
||||
|
||||
$newchain = openssl_encrypt($chain, $ciphering, $key, 0, $ivseed);
|
||||
|
||||
Reference in New Issue
Block a user