• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/web/cookiescrypter.php
  • Класс: BitrixMainWebCookiesCrypter
  • Вызов: CookiesCrypter::decrypt
public function decrypt(string $name, string $value, iterable $cookies): string
{
	if (!$this->shouldDecrypt($name, $value))
	{
		return $value;
	}

	try
	{
		return $this->unpackCookie($value, $cookies);
	}
	catch (SecurityException $e)
	{
		//just skip cookies which we can't decrypt.
	}

	return '';
}