标签: php api rest signature
首先,我对API很陌生,所以我在这里努力保持头脑清醒...但不管怎样,我需要在PHP中生成HMAC-SHA签名。我该怎么做?
答案 0 :(得分:1)
<?php echo "welcome<br />"; echo "welcome<br />"; echo hash_hmac('sha256', 'This is only a test sentence of gibberish.', 'secret123'); echo "<br />"; ?>