有一个库的iPhone与HMAC-SHA-1编码工作 [英] Is there a library for iPhone to work with HMAC-SHA-1 encoding

查看:155
本文介绍了有一个库的iPhone与HMAC-SHA-1编码工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

<一个href="http://oauth.google$c$c.com/svn/$c$c/obj-c/OAuthConsumer/Crypto/">http://oauth.google$c$c.com/svn/$c$c/obj-c/OAuthConsumer/Crypto/

我写在可可的OAuth实现使用:<一href="http://$c$c.google.com/p/oauthconsumer/wiki/UsingOAuthConsumer">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

这篇关于有一个库的iPhone与HMAC-SHA-1编码工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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