-
Good morning, currently, I'm migrating from PHP 7.4 with Phalcon 4.1.0 to PHP 8.1.6 with Phalcon 5. On the new version, my hashes (from Phalcon\Crypt, now Phalcon\Encryption\Crypt) don't work anymore, with the key remaining the same. When I try to decrypt the hashes, I just get The code in question: $di->set(
'crypt',
function () {
$crypt = new Crypt();
$crypt->setKey(
"32 characters long key here"
);
return $crypt;
},
true
); I didn't change any code related to this, except the new namespace. I found this issue #16010 with someone having the same problem and I wondered if this has been further investigated after this. I really want to avoid rehashing all values in store... Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I have not been able to understand what processing is actually done internally, but when I look at the published source, it seems that the default value of the argument Phalcon\Crypt v4.1.x
Phalcon\Encryption\Crypt v5.0.x (master)
Can't you solve it by calling this with the same value? |
Beta Was this translation helpful? Give feedback.
I have not been able to understand what processing is actually done internally, but when I look at the published source, it seems that the default value of the argument
useSigning
is different.Phalcon\Crypt v4.1.x
Phalcon\Encryption\Crypt v5.0.x (master)
Can't you solve it by calling this with the same value?