function EncryptHMACSha1(Input, AKey: AnsiString): TIdBytes;
var
Key: TIdBytes;
begin
with TIdHMACSHA1.Create do
try
Key := ToBytes(AKey);
Result := HashValue(ToBytes(Input));
finally
Free;
end;
end;
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END