开发者

Mobile secure login system?

开发者 https://www.devze.com 2023-03-06 01:35 出处:网络
I want clients to be able to login into their account from an iOS application. Is there a good way on doing this in a secure way?

I want clients to be able to login into their account from an iOS application. Is there a good way on doing this in a secure way? Sure I'd submit the password as a hashed value, but wouldn't there still be the possibility of someone to spoof m开发者_开发百科y clients credentials?

The only credentials provided by the client are an email address and a password. A secret key would be possible, but that wouldn't be too secure as I'd have to hardcode this key into every delivered copy of the application and someone could possibly decompile and see the secret.

Thanks for your help.


Use SSL/TLS and hardcode the public key(or at least the fingerprint) of the server in your client. That way you can check if the server is the correct server.

And since you use asymmetric cryptography you don't need to embed the private key of the server into the client.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号