HEX
Server: Apache
System: Linux hpdm-small-p5-0006.cafe24.com 5.14.0-427.35.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Sep 12 18:24:53 UTC 2024 x86_64
User: mlinestudio (1296)
PHP: 5.5.17p1
Disabled: mysql_pconnect
Upload Files
File: /home/hosting_users/mlinestudio/www/phpmline/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;
    }
}