/var/softaculous/modx
NameSizeModeActions
images/-0755rm
php53/-0755rm
php56/-0755rm
php71/-0755rm
php81/-0755rm
php82/-0755rm
changelog.txt22330644editdlrm
clone.php82220644editdlrm
config.core.php2870644editdlrm
config.inc.php32110644editdlrm
edit.php54620644editdlrm
edit.xml4330644editdlrm
extend.php119460644editdlrm
fileindex.php720644editdlrm
import.php39500644editdlrm
info.xml38720644editdlrm
install.js9210644editdlrm
install.php66210644editdlrm
install.xml10730644editdlrm
md514370644editdlrm
modhashing.class.php63120644editdlrm
modpbkdf2.class.php25100644editdlrm
notes.txt15600644editdlrm
update_pass.php6720644editdlrm
upgrade.php40960644editdlrm
upgrade.xml4360644editdlrm
xpdo.class.php1323470644editdlrm
Edit: /var/softaculous/modx/modpbkdf2.class.php (2510B)
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; } }