• Модуль: ldap
  • Путь к файлу: ~/bitrix/modules/ldap/lib/Internal/Security/Password.php
  • Класс: BitrixLdapInternalSecurityPassword
  • Вызов: Password::__construct
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);
}