I am intending to make a new REST user API to let users log into future web apps and projects of mine.
I am equally fluent and confident in PHP and Python and I realise that there is no straight answer to this but which would you use and why? Additionally, how should the user data be protected in transmission? I just want a fairly simple user API ... so its a question of PHP or Python, and then security.
You should use Django along with Django Rest Framework[1], which is absolutely amazing at building REST APIs. It lets you use all the goodies that come with Django and provides a very Django-ish way to build APIs.<p>[1] <a href="http://www.django-rest-framework.org/" rel="nofollow">http://www.django-rest-framework.org/</a>
Honestly, both can work. That said, python has a few well-known open-source rest api libraries/frameworks that have strong community support like Django Rest Framework or flask.<p>In terms of security, best practices would be to use https, api keys for each application. I'd also suggest setting up oath2
> ...which would you use and why?<p>Python. I prefer it as a language over PHP and I'm more comfortable developing and deploying Python projects.<p>> Additionally, how should the user data be protected in transmission?<p>HTTPS?