· 5 years ago · Sep 14, 2020, 02:54 PM
1function getFormSignature($account, $desc, $sum, $secretKey) 2{ 3 $hashStr = $account.'{up}'.$desc.'{up}'.$sum.'{up}'.$secretKey; 4 return hash('sha256', $hashStr); 5}