有一个库的iPhone与HMAC-SHA-1编码工作有一个、工作、HMAC、iPhone

2023-09-11 10:14:08 作者:店小二,给我来半斤真爱

对于所有操作亚马逊服务(S3,EC2,SimpleDB的),您需要登录所有resquest与HMAC-SHA-1签名( http://en.wikipedia.org/wiki/HMAC ,http://docs.amazonwebservices.com/AWSFWS/latest/DeveloperGuide/index.html?SummaryOfAuthentication.html).

For all operation with Amazon services(S3, EC2, SimpleDB) You need to sign all resquest with HMAC-SHA-1 Signature(http://en.wikipedia.org/wiki/HMAC , http://docs.amazonwebservices.com/AWSFWS/latest/DeveloperGuide/index.html?SummaryOfAuthentication.html).

我工作在asp.net后端并没有问题。问题是,在iPhone应用程序。 iPhone开发人员说,有没有办法使用HMAC-SHA-1编码,而他也没有 - 瑞来实现自己的算法。作为程序员,我不明白为什么有可能是一个问题。

I'm working under asp.net backend and there is no problems. Problem is in the iPhone application. iPhone developer says that there is no way to use HMAC-SHA-1 encoding, and he have no rigths to implement his own algorithm. As programmer I cannot understand why there can be a problem.

所以,我想也是知道的是iPhone开发人员吗?

So I want too know is iPhone developer right?

我从来没有codeD的iPhone,所以我甚至不到哪里去寻找这样的信息。的

推荐答案

CommonCrypto将做到这一点。但是如果你想code,我有一些在这里:

CommonCrypto will do it. But if you want code, I have some here:

http://oauth.google$c$c.com/svn/$c$c/obj-c/OAuthConsumer/Crypto/

我写在可可的OAuth实现使用:http://$c$c.google.com/p/oauthconsumer/wiki/UsingOAuthConsumer

Which I wrote for use in the Cocoa OAuth implementation: http://code.google.com/p/oauthconsumer/wiki/UsingOAuthConsumer