/var/softaculous/modx
NameSizeModeActions
images/-0755rm
php53/-0755rm
php56/-0755rm
php71/-0755rm
php81/-0755rm
changelog.txt60430755editdlrm
clone.php81970755editdlrm
config.core.php2870755editdlrm
config.inc.php32680755editdlrm
edit.php54500755editdlrm
edit.xml4330755editdlrm
extend.php119300755editdlrm
fileindex.php720755editdlrm
import.php33710755editdlrm
info.xml38720755editdlrm
install.js9210755editdlrm
install.php66330755editdlrm
install.xml10730755editdlrm
md514370755editdlrm
modhashing.class.php63120755editdlrm
modpbkdf2.class.php25100755editdlrm
notes.txt14730755editdlrm
update_pass.php6720755editdlrm
upgrade.php41240755editdlrm
upgrade.xml3060755editdlrm
xpdo.class.php1323470755editdlrm
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; } }