• Модуль: pull
  • Путь к файлу: ~/bitrix/modules/pull/classes/general/pull_channel.php
  • Класс: CPullChannel
  • Вызов: CPullChannel::GetSignature
static function GetSignature($value, $signatureKey = null)
{
	if(!$signatureKey)
	{
		$signatureKey = BitrixPullConfig::getSignatureKey();
	}
	$signatureAlgo = CPullOptions::GetSignatureAlgorithm();
	$hmac = new SignHmacAlgorithm();
	$hmac->setHashAlgorithm($signatureAlgo);
	$signer = new SignSigner($hmac);
	$signer->setKey($signatureKey);

	return $signer->getSignature($value);
}