PHP 8.1.33
Preview: BCryptHandler.php Size: 817 B
/home/jambtst2015/public_html/ida.com.ng/libraries/src/Authentication/Password/BCryptHandler.php

<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
 * @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\BCryptHandler as BaseBCryptHandler;

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

Directory Contents

Dirs: 0 × Files: 7

Name Size Perms Modified Actions
829 B lrw-r--r-- 2024-11-22 17:53:12
Edit Download
823 B lrw-r--r-- 2024-11-22 17:53:12
Edit Download
817 B lrw-r--r-- 2024-11-22 17:53:12
Edit Download
2.40 KB lrw-r--r-- 2024-11-22 17:53:12
Edit Download
684 B lrw-r--r-- 2024-11-22 17:53:12
Edit Download
2.11 KB lrw-r--r-- 2024-11-22 17:53:12
Edit Download
1.94 KB lrw-r--r-- 2024-11-22 17:53:12
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).