HMAC-SHA256德尔福 [英] HMAC-SHA256 in Delphi

查看:677
本文介绍了HMAC-SHA256德尔福的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要生成HMAC-SHA256签名亚马逊Web服务的API。老DCPcrypt库有SHA256程序,但没有做HMAC签名。任何人都知道的免费哈希库,我可以用?

I need to generate HMAC-SHA256 signatures for the Amazon web services API. The old DCPcrypt library has sha256 routines but does not do HMAC signing. Anyone know of a free hashing library I could use?

推荐答案

多一点搜索,我发现OpenStreamSec后 - 这看起来像是被遗弃在几年前,但仍然在编译D2007

After a little more searching I found OpenStreamSec - which looks like it was abandoned a few years ago but still compiles in D2007.

http://sourceforge.net/projects/openstrsecii/

生成HMAC-256亚马逊是非常简单的:

Generating a HMAC-256 for Amazon is really simple:

StrToMime64(HMACString(haSHA256, SecretKey, 32, DataToHash));

这篇关于HMAC-SHA256德尔福的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆