• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/security/mfa/otpalgorithm.php
  • Класс: BitrixMainSecurityMfaOtpAlgorithm
  • Вызов: OtpAlgorithm::toByte
static function toByte($value)
{
	$result = [];
	while ($value > 0)
	{
		$result[] = chr($value & 0xFF);
		$value >>= 8;
	}

	return str_pad(implode(array_reverse($result)), 8, "00", STR_PAD_LEFT);
}