CoreFiles by mySites.guru
Argon2iHandler.php35 lines, 861 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
611866a0331fe9413393c76771f1076d
sha1
e1724bff02fc4de1d51cf2d10dedfe57a6e28430
sha256
643dffe32523a9180e1bee52c5971a87b13af9161d94ed7636b71825aa948974
<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Authentication\Password;

defined('JPATH_PLATFORM') or die;

use Joomla\Authentication\Password\Argon2iHandler as BaseArgon2iHandler;

/**
 * Password handler for Argon2i hashed passwords
 *
 * @since  __DEPLOY_VERSION__
 */
class Argon2iHandler extends BaseArgon2iHandler implements CheckIfRehashNeededHandlerInterface
{
	/**
	 * Check if the password requires rehashing
	 *
	 * @param   string  $hash  The password hash to check
	 *
	 * @return  boolean
	 *
	 * @since   __DEPLOY_VERSION__
	 */
	public function checkIfRehashNeeded(string $hash): bool
	{
		return password_needs_rehash($hash, PASSWORD_ARGON2I);
	}
}

No other release has this exact content. See every version of this file.