\Yurun\PaySDK\Lib\Encrypt\SHA256withRSASigner

Summary

Methods
Properties
Constants
sign()
verify()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

sign()

sign(string  $message,   $serialNumber, string|resource  $privateKey) : \Yurun\PaySDK\Lib\Encrypt\SHA256withRSA\SignatureResult

Sign Message.

Parameters

string $message

Message to sign

$serialNumber
string|resource $privateKey

Merchant Certificate Private Key (string - PEM formatted key, or resource - key returned by openssl_get_privatekey)

Returns

\Yurun\PaySDK\Lib\Encrypt\SHA256withRSA\SignatureResult

verify()

verify(string  $message,   $signature, string  $publicKey) : boolean

Verify signature of message.

Parameters

string $message

message to verify

$signature
string $publicKey

Returns

boolean