GRAYBYTE WORDPRESS FILE MANAGER3366

Server IP : 149.255.58.128 / Your IP : 216.73.216.206
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /var/softaculous/modx/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /var/softaculous/modx//modpbkdf2.class.php
<?php
/**
 * This file contains a modHash implementation of RSA PDKDF2.
 * @package modx
 * @subpackage hashing
 */

/**
 * A PBKDF2 implementation of modHash.
 *
 * {@inheritdoc}
 *
 * @package modx
 * @subpackage hashing
 */
 
class modPBKDF2 extends modHash {
    /**
     * Generate a hash of a string using the RSA PBKDFA2 specification.
     *
     * The following options are available:
     *  - salt (required): a valid, non-empty string to salt the hashes
     *  - iterations: the number of iterations per block, default is 1000 (< 1000 not recommended)
     *  - derived_key_length: the size of the derived key to generate, default is 32
     *  - algorithm: the hash algorithm to use, default is sha256
     *  - raw_output: if true, returns binary output, otherwise derived key is base64_encode()'d; default is false
     *
     * @param string $string A string to generate a secure hash from.
     * @param array $options An array of options to be passed to the hash implementation.
     * @return mixed The hash result or false on failure.
     */
    public function hash($string, array $options = array()) {
        $derivedKey = false;
        $salt = $this->getOption('salt', $options, false);
        if (is_string($salt) && strlen($salt) > 0) {
            $iterations = (integer) $this->getOption('iterations', $options, 1000);
            $derivedKeyLength = (integer) $this->getOption('derived_key_length', $options, 32);
            $algorithm = $this->getOption('algorithm', $options, 'sha256');

            $hashLength = strlen(hash($algorithm, null, true));
            $keyBlocks = ceil($derivedKeyLength / $hashLength);
            $derivedKey = '';
            for ($block = 1; $block <= $keyBlocks; $block++) {
                $hashBlock = $hb = hash_hmac($algorithm, $salt . pack('N', $block), $string, true);
                for ($blockIteration = 1; $blockIteration < $iterations; $blockIteration++) {
                    $hashBlock ^= ($hb = hash_hmac($algorithm, $hb, $string, true));
                }
                $derivedKey .= $hashBlock;
            }
            $derivedKey = substr($derivedKey, 0, $derivedKeyLength);
            if (!$this->getOption('raw_output', $options, false)) {
                $derivedKey = base64_encode($derivedKey);
            }
        } else {
            $this->host->modx->log(modX::LOG_LEVEL_ERROR, "PBKDF2 requires a valid salt string.", '', __METHOD__, __FILE__, __LINE__);
        }
        return $derivedKey;
    }
	
	
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
May 23 2025 09:37:16
0 / root
0755
images
--
April 04 2025 09:37:12
0 / root
0755
php53
--
April 04 2025 09:37:12
0 / root
0755
php56
--
April 04 2025 09:37:12
0 / root
0755
php71
--
April 04 2025 09:37:12
0 / root
0755
php81
--
April 04 2025 09:37:12
0 / root
0755
php82
--
April 04 2025 09:37:12
0 / root
0755
changelog.txt
8.755 KB
April 03 2025 04:04:46
0 / root
0644
clone.php
8.029 KB
April 03 2025 06:47:38
0 / root
0644
config.core.php
0.28 KB
December 23 2021 06:54:36
0 / root
0644
config.inc.php
3.136 KB
December 19 2024 04:08:46
0 / root
0644
edit.php
5.369 KB
April 03 2025 06:47:38
0 / root
0644
edit.xml
0.423 KB
December 23 2021 06:54:36
0 / root
0644
extend.php
11.658 KB
April 03 2025 06:47:38
0 / root
0644
fileindex.php
0.07 KB
December 23 2021 06:54:36
0 / root
0644
import.php
3.854 KB
April 03 2025 06:47:38
0 / root
0644
info.xml
3.781 KB
April 03 2025 04:04:46
0 / root
0644
install.js
0.899 KB
December 23 2021 06:54:36
0 / root
0644
install.php
6.45 KB
April 03 2025 06:47:38
0 / root
0644
install.xml
1.048 KB
April 29 2022 06:16:08
0 / root
0644
md5
3.222 KB
April 03 2025 06:47:38
0 / root
0644
modhashing.class.php
6.164 KB
December 23 2021 06:54:36
0 / root
0644
modpbkdf2.class.php
2.451 KB
December 23 2021 06:54:36
0 / root
0644
notes.txt
1.523 KB
April 03 2025 04:04:46
0 / root
0644
update_pass.php
0.656 KB
December 23 2021 06:54:36
0 / root
0644
upgrade.php
4 KB
April 03 2025 06:47:38
0 / root
0644
upgrade.xml
0.426 KB
December 19 2024 04:08:46
0 / root
0644
xpdo.class.php
129.245 KB
December 23 2021 06:54:36
0 / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF