<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                #### hash_hmac PHP 5 >= 5.1.2, PHP 7, PECL hash >= 1.1) hash_hmac — 使用 HMAC 方法生成帶有密鑰的哈希值 #### 說明 ~~~ string hash_hmac ( string $algo , string $data , string $key [, bool $raw_output = false ] ) ~~~ #### 參數 * algo:要使用的哈希算法名稱,例如:"md5","sha256","haval160,4" 等。 如何獲取受支持的算法清單,請參見 hash_algos()。 * data:要進行哈希運算的消息。 * key:使用 HMAC 生成信息摘要時所使用的密鑰。 * raw_output:設置為 TRUE 輸出原始二進制數據, 設置為 FALSE 輸出小寫 16 進制字符串。 #### 返回值 如果 raw_output 設置為 TRUE, 則返回原始二進制數據表示的信息摘要, 否則返回 16 進制小寫字符串格式表示的信息摘要。 如果 algo 參數指定的不是受支持的算法,返回 FALSE。 #### 范例 Example #1 hash_hmac() 例程 ~~~ <?php echo hash_hmac('ripemd160', 'The quick brown fox jumped over the lazy dog.', 'secret'); ?> ~~~ 以上例程會輸出: ~~~ b8e7ae12510bdfb1812e463a7f086122cf37e4f7 ~~~ > php 代碼示例 ~~~ function verify($appkey,$token,$timestamp,$signature){ $hash="sha256"; $result=hash_hmac($hash,$timestamp.$token,$appkey); return strcmp($result,$signature)==0?1:0; } ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看