Home  >  Article  >  Backend Development  >  支付宝 APP 支付签名问题?

支付宝 APP 支付签名问题?

WBOY
WBOYOriginal
2016-06-06 20:15:421162browse

支付宝文档
支付宝 APP 支付签名问题?

这里的签名函数,如果用PHP 实现的话,是应该用

<code>openssl_private_encrypt()</code>

还是用

<code>openssl_sign()</code>

回复内容:

支付宝文档
支付宝 APP 支付签名问题?

这里的签名函数,如果用PHP 实现的话,是应该用

<code>openssl_private_encrypt()</code>

还是用

<code>openssl_sign()</code>

使用openssl_sign来计算签名。

openssl_private_encrypt只是加密方法,不含签名算法,而openssl_sign是用来签名的函数。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn