最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
OAuth认证协议中的HMACSHA1加密算法(实例)
时间:2022-06-24 14:39:07 编辑:袖梨 来源:一聚教程网
实例如下:
$blocksize)
$key=pack('H*', $hashfunc($key));
$key=str_pad($key,$blocksize,chr(0x00));
$ipad=str_repeat(chr(0x36),$blocksize);
$opad=str_repeat(chr(0x5c),$blocksize);
$hmac = pack(
'H*',$hashfunc(
($key^$opad).pack(
'H*',$hashfunc(
($key^$ipad).$data
)
)
)
);
return $hmac;
}
?>
相关文章
- 基于Ollama本地搭建OpenClaw私人助手的实现方式步骤实用指南 10-03
- starwave:AI Agent 工具实践指南 10-03
- Paper2Seminar:AI Agent 工具实践指南 10-03
- PromptSkill4image:实践指南 10-03
- pishi-normalno:AI Agent 工具实践指南 10-03
- contract-review:实践指南 10-03