Skip to content

After migrating to PHP 8.1 and 5.0.0: Hashes don't match anymore #16117

Answered by s-ohnishi
Nyde asked this question in Q&A
Discussion options

You must be logged in to vote

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

public function __construct(string! cipher = "aes-256-cfb", bool useSigning = false)

Phalcon\Encryption\Crypt v5.0.x (master)

public function __construct(
         string cipher = self::DEFAULT_CIPHER,
         bool useSigning = true,
         <PadFactory> padFactory = null
     ) {

Can't you solve it by calling this with the same value?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Nyde
Comment options

Answer selected by Nyde
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants