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