• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/web/cookiescrypter.php
  • Класс: BitrixMainWebCookiesCrypter
  • Вызов: CookiesCrypter::encryptValue
protected function encryptValue(string $value): string
{
	$this->buildCipher();
	if (function_exists('gzencode'))
	{
		$value = gzencode($value);
	}

	return $this->encodeUrlSafeB64($this->cipher->encrypt($value, $this->getCipherKey()));
}