• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/session/debugger.php
  • Класс: BitrixMainSessionDebugger
  • Вызов: Debugger::encryptValue
protected function encryptValue(string $value): string
{
	try
	{
		$cipher = new Cipher();
		$encryptedValue = $cipher->encrypt($value, $this->getCryptoKey());

		return $this->encodeUrlSafeB64($encryptedValue);
	}
	catch (SecurityException $securityException)
	{
		return '';
	}
}