當前位置: 首頁>>代碼示例>>PHP>>正文


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怎麽用?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);
 }
開發者ID:vinvinh315,項目名稱:maintainwebsolutions.com,代碼行數:15,代碼來源:google-utilities.inc.php

示例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']);
 }
開發者ID:adnandot,項目名稱:intenseburn,代碼行數:15,代碼來源:files-in.inc.php

示例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"]);
 }
開發者ID:novichkovv,項目名稱:candoweightloss,代碼行數:14,代碼來源:files-in.inc.php


注:本文中的c_ws_plugin__s2member_utils_strings::hmac_sha1_sign方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。