本文整理汇总了PHP中c_ws_plugin__s2member_utils_strings::hmac_sha1_sign方法的典型用法代码示例。如果您正苦于以下问题:PHP c_ws_plugin__s2member_utils_strings::hmac_sha1_sign方法的具体用法?PHP c_ws_plugin__s2member_utils_strings::hmac_sha1_sign怎么用?PHP c_ws_plugin__s2member_utils_strings::hmac_sha1_sign使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类c_ws_plugin__s2member_utils_strings
的用法示例。
在下文中一共展示了c_ws_plugin__s2member_utils_strings::hmac_sha1_sign方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: google_sign
/**
* Builds an HMAC-SHA1 signature for XML data transfer verification.
*
* @package s2Member\Google
* @since 1.5
*
* @param str $xml An XML data string to sign.
* @return str An HMAC-SHA1 signature string.
*/
public static function google_sign($xml = FALSE)
{
$key = $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["pro_google_merchant_key"];
/**/
return c_ws_plugin__s2member_utils_strings::hmac_sha1_sign((string) $xml, $key);
}
示例2: amazon_cf_sign
/**
* Creates an Amazon CloudFront HMAC-SHA1 signature.
*
* @package s2Member\Files
* @since 110926
*
* @param string $string Input string/data, to be signed by this routine.
*
* @return string An HMAC-SHA1 signature for Amazon CloudFront.
*/
public static function amazon_cf_sign($string = '')
{
$cfc['secret_key'] = $s3c['secret_key'] = $GLOBALS['WS_PLUGIN__']['s2member']['o']['amazon_s3_files_secret_key'];
return c_ws_plugin__s2member_utils_strings::hmac_sha1_sign((string) $string, $cfc['secret_key'] = $s3c['secret_key']);
}
示例3: amazon_cf_sign
/**
* Creates an Amazon CloudFront HMAC-SHA1 signature.
*
* @package s2Member\Files
* @since 110926
*
* @param str $string Input string/data, to be signed by this routine.
* @return str An HMAC-SHA1 signature for Amazon CloudFront.
*/
public static function amazon_cf_sign($string = FALSE)
{
$cfc["secret_key"] = $s3c["secret_key"] = $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["amazon_s3_files_secret_key"];
return c_ws_plugin__s2member_utils_strings::hmac_sha1_sign((string) $string, $cfc["secret_key"] = $s3c["secret_key"]);
}