• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/web/cookiescrypter.php
  • Класс: BitrixMainWebCookiesCrypter
  • Вызов: CookiesCrypter::encrypt
public function encrypt(CryptoCookie $cookie): iterable
{
	$result = [];
	$encryptedValue = $this->encryptValue($cookie->getValue());
	foreach ($this->packCookie($cookie, $encryptedValue) as $partCookie)
	{
		$result[] = $partCookie;
	}

	return $result;
}