hash_equals( string $a, string $b )
Compare two strings in constant time.
Description Description
This function was added in PHP 5.6. It can leak the length of a string.
Parameters Parameters
- $a
-
(Required) Expected string.
- $b
-
(Required) Actual string.
Return Return
(bool) Whether strings are equal.
Source Source
File: includes/misc-functions.php
Changelog Changelog
Version | Description |
---|---|
2.2.1 | Introduced. |