403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/cvetdv.ru/bitrix/modules/ldap/lib/Internal/Security/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/cvetdv.ru/bitrix/modules/ldap/lib/Internal/Security/Password.php
<?php

namespace Bitrix\Ldap\Internal\Security;

use Bitrix\Main\ArgumentException;
use Bitrix\Main\Security\Random;

/**
 * @package Bitrix\Ldap\Internal
 * You must not use classes from Internal namespace outside current module.
 */
final class Password
{
	private int $length;
	private int $chars;
	private string $value;

	/**
	 * @param int $length
	 * @param int $chars Use mask from \Bitrix\Main\Security\Random::ALPHABET_*
	 * @throws ArgumentException
	 */
	public function __construct(int $length = 32, int $chars = Random::ALPHABET_ALL)
	{
		if ($length <= 0)
		{
			throw new ArgumentException('Password cannot be empty');
		}

		$this->length = $length;
		$this->chars = $chars;
		$this->value = Random::getStringByAlphabet($this->length, $this->chars, true);
	}

	public function __toString()
	{
		return $this->value;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit