我使用HMAC-SHA 256加密密码,并在登录时发送加密后的密码。所以,是否有什么东西,苹果公司在iPhone5上实现,不允许服务接受加密数据。
我没有iPhone5,也不想购买iPhone5,因为它太贵了。有人能帮我解决这个问题吗?
这是我的代码:
NSMutableURLRequest *theRequest =
[NSMutableURLRequest requestWithURL:[NSURL URLWithString:[url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:60.0];
//do post request for parameter passing
[theRequest setHTTPMethod:@"POST"];
//set the content type to JSON
[theRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
[theRequest addValue:userName forHTTPHeaderField:@"Username"];
[theRequest addValue:sha256(passWord) forHTTPHeaderField:@"Password"];
以下是苹果的评论:
在iPhone 5上运行iOS 6.0.1系统的Wi-Fi和蜂窝网络上进行审查时,我们发现您的应用程序存在一个或多个错误,不符合App Store审核指南。