By subhojit777 on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.0.x
Introduced in version:
8.0.0-rc3
Issue links:
Description:
Use Crypt::hashEquals() for comparing hash/token values instead of using === operator that can cause cause incorrect results or timing attacks.
Usage:
Crypt::hashEquals($hash_1, $hash_2);
Crypt::hashEquals($hash, user_pass_rehash($user, $timestamp));
Crypt::hashEquals() returns TRUE when the two strings are equal, FALSE otherwise.
Impacts:
Module developers