$appId
$appId
alonersaSign( $data, $privatekey, $signType = "RSA", $keyfromfile = false) : string
RSA单独签名方法,未做字符串处理,字符串处理见getSignContent()
| $data | 待签名字符串 |
|
| $privatekey | 商户私钥,根据keyfromfile来判断是读取字符串还是读取文件,false:填写私钥字符串去回车和空格 true:填写私钥文件路径 |
|
| $signType | 签名方式,RSA:SHA1 RSA2:SHA256 |
|
| $keyfromfile | 私钥获取方式,读取字符串还是读文件 |
checkSignAndDecrypt(mixed $params, mixed $rsaPublicKeyPem, mixed $rsaPrivateKeyPem, mixed $isCheckSign, mixed $isDecrypt, mixed $signType = 'RSA') : mixed
在使用本方法前,必须初始化AopClient且传入公私钥参数。 公钥是否是读取字符串还是读取文件,是根据初始化传入的值判断的。
| mixed | $params | |
| mixed | $rsaPublicKeyPem | |
| mixed | $rsaPrivateKeyPem | |
| mixed | $isCheckSign | |
| mixed | $isDecrypt | |
| mixed | $signType |
encryptAndSign(mixed $bizContent, mixed $rsaPublicKeyPem, mixed $rsaPrivateKeyPem, mixed $charset, mixed $isEncrypt, mixed $isSign, mixed $signType = 'RSA') : mixed
在使用本方法前,必须初始化AopClient且传入公私钥参数。 公钥是否是读取字符串还是读取文件,是根据初始化传入的值判断的。
| mixed | $bizContent | |
| mixed | $rsaPublicKeyPem | |
| mixed | $rsaPrivateKeyPem | |
| mixed | $charset | |
| mixed | $isEncrypt | |
| mixed | $isSign | |
| mixed | $signType |