• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/security/mfa/otpalgorithm.php
  • Класс: BitrixMainSecurityMfaOtpAlgorithm
  • Вызов: OtpAlgorithm::setSecret
public function setSecret($secret)
{
	$this->secret = $secret;

	// Backward compatibility. Use sha256 for eToken with 256bits key
	if (strlen($this->secret) > 25)
	{
		$this->digest = 'sha256';
	}

	return $this;
}