Securely send a Plain Text password?

后端 未结 3 1971
别跟我提以往
别跟我提以往 2020-12-16 03:38

I\'m working on an application for iOS which will have the user fill out their password. The password will then be posted to a PHP page on my site using either POST or GET.

3条回答
  •  别那么骄傲
    2020-12-16 03:42

    You could encrypt at the device and decrypt at the server, but if the data going across the wire is sensitive enough to warrant that much work, then IMHO, I believe you're better off just using https. It's tried, true, and established.

    It's not perfect, mind you, and there have been successful attacks against older versions of it, but it is a heck of a lot better than "rolling your own" method of security.

    Say your key gets compromized, for example: If you're using https with a cert from a trusted authority, then you just buy a new cert. HTe deveice, if it trusts the authority, will accept the new certificate. If you go your own route on it, then you have to update the keys not only on your web server, but at the client as well. No way would I want that sort of headache.

    I'm not saying that the challenge is insurmountable. I am saying it may not be worth the effort when tools already exist.

提交回复
热议问题