Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
thread-self
/
root
/
proc
/
212
/
root
/
srv
/
admin
/
htdocs
/
phpmyadmin-4.9
/
libraries
/
//proc/thread-self/root/proc/212/root/srv/admin/htdocs/phpmyadmin-4.9/libraries/hash.lib.php
<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * The hash extension polyfills. * * @package PhpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; } /* Compatibility with PHP < 5.6 */ if (! function_exists('hash_equals')) { /** * Timing attack safe string comparison * * @param string $a first string * @param string $b second string * * @return boolean whether they are equal */ function hash_equals($a, $b) { $ret = strlen($a) ^ strlen($b); $ret |= array_sum(unpack("C*", $a ^ $b)); return ! $ret; } }