function EncryptHMACSha512(Input, AKey: String): String;
var
SHA512 : TIdHMACSHA512;
tmp:String;
begin
SHA512:=TIdHMACSHA512.Create;
try
SHA512.Key:=TIdDecoderMIME.DecodeBytes(AKey);
Result:=TIdEncoderMIME.EncodeBytes(SHA512.HashValue(bytesof(Input)));
finally
SHA512.Free;
end;
end;
结果与此网址一致:http://caligatio.github.io/jsSHA/
转载于:https://www.cnblogs.com/prtmon/p/3286961.html
最后
以上就是洁净鞋子最近收集整理的关于HMACSHA512算法!的全部内容,更多相关HMACSHA512算法内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复