This commit is contained in:
Yuri Kuznetsov
2021-05-08 23:08:05 +03:00
parent 3a844767f0
commit 2ed81ef9be

View File

@@ -98,11 +98,11 @@ class Crypt
public function decrypt(string $encryptedString): string
{
$encryptedString = base64_decode($encryptedString);
$encryptedStringDecoded = base64_decode($encryptedString);
$string = substr($encryptedString, 0, strlen($encryptedString) - 16);
$string = substr($encryptedStringDecoded, 0, strlen($encryptedStringDecoded) - 16);
$iv = substr($encryptedString, -16);
$iv = substr($encryptedStringDecoded, -16);
if (extension_loaded('openssl')) {
return trim(