public static function passwordEncrypt (string $password=NULL) : string
	{
		$hashFormat 	= "$2y$10$";
		// Tells php to use blowfish with a cost of 10
		$saltLength 	= 22;
		// Blowfish Salts should be 22-characters or more
		$salt 			= static::generateSalt($saltLength);
		$formatAndSalt 	= $hashFormat.$salt;
		return crypt($password, $formatAndSalt);
	}
public static function passwordEncrypt (string $password=NULL) : string
	{
		$hashFormat 	= "$2y$10$";
		// Tells php to use blowfish with a cost of 10
		$saltLength 	= 22;
		// Blowfish Salts should be 22-characters or more
		$salt 			= static::generateSalt($saltLength);
		$formatAndSalt 	= $hashFormat.$salt;
		return crypt($password, $formatAndSalt);
	}
public static function passwordEncrypt ( string $ password = NULL ) : string { $ hashFormat = "$2y$10$" ; // Tells php to use blowfish with a cost of 10 $ saltLength = 22 ; // Blowfish Salts should be 22-characters or more $ salt = static :: generateSalt ( $ saltLength ) ; $ formatAndSalt = $ hashFormat . $ salt ; return crypt ( $ password , $ formatAndSalt ) ; }
Encrypts password using blowfish.
@param string $password
@return string
Encrypts password using blowfish .