getOption(self::OPTION_SALT); if (empty($salt)) { throw new InconsistencyConfigException(sprintf('Option %s is not defined', self::OPTION_SALT)); } $dataToCheck = json_encode($dataToSign); return hash('sha256', $salt . $dataToCheck . $salt); } }