public function perform()
{
$str = Request::getString($_REQUEST['str']);
$size = Request::getInteger($_REQUEST['size']);
$rounds = Request::getInteger($_REQUEST['rounds']);
if (!$rounds) {
$rounds = 24;
}
$salt = '$512=24';
$hash = Crypt::hash($str, $salt);
$hex = trim(str_replace('\\x', ' ', Debug::exportBytes(base64_decode($hash), true)));
$this->req->setResult(['stringWithSalt' => $str . $salt, 'base64' => $hash, 'salt' => $salt, 'hex' => $hex, 'rounds' => 24]);
}