安全登录的Android / PHP [英] secure login Android / PHP
问题描述
我用(断绝侧)一个MySQL数据库和PHP和(客户端)的Android。
我想控制数据访问。
我怎么可以使用Android和PHP使安全登录?
I use (sever side) a mysql db with php and (client side) Android. I would like to control data access. How I can make a SECURE login using Android and php?
推荐答案
这几天使用OAuth来处理这个大多数应用程序:Facebook,微博等。这个想法是基于登录,然后保持令牌发出请求到在另一端的API。虽然OAuth是不是非常简单,有库在那里Android和PHP,这是一个值得信赖的认证策略。您可以为谷歌找出如何在PHP中实现OAuth的,有(可用在Android真的只是Java中,用API)的库来处理Android上的OAuth:的 http://oauth.net/$c$c/
Most applications these days use OAuth to handle this: Facebook, twitter, etc.. The idea is based on logging in, and then keeping a token to make requests to the API at the other end. While OAuth is not extremely simple, there are libraries out there for Android and PHP, and it's a trusted authentication strategy. You can Google for finding out how to implement OAuth in PHP, and there are libraries to handle OAuth on Android (really just Java, with APIs that are available on Android): http://oauth.net/code/
这篇关于安全登录的Android / PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!