最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to secure AngularJS $http.post data? - Stack Overflow

programmeradmin5浏览0评论

I came to a security concern while doing $http.post requests that are received by the backend of my app. I can see all the data that is being sent using for example firebug in Firefox.

Are third parties able to sniff this data? It would be disastrous if someone sniffed the password when someone registers a new account.

Is there a way to secure my AngularJS front-end so that someone won't be able to steal the data in the POST request?

Any advice will be appreciated :)

I came to a security concern while doing $http.post requests that are received by the backend of my app. I can see all the data that is being sent using for example firebug in Firefox.

Are third parties able to sniff this data? It would be disastrous if someone sniffed the password when someone registers a new account.

Is there a way to secure my AngularJS front-end so that someone won't be able to steal the data in the POST request?

Any advice will be appreciated :)

Share Improve this question asked Sep 20, 2014 at 11:23 EslaronEslaron 412 silver badges9 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 6

No javascript can secure your password. Use SSL. Or better yet, use services your user are already registered to like Google, Facebook or any openID/oAtuh provider so we don't need to go thought the annoying process of creating a new unique password verify the email :)

One of the ways to secure the data being set to/from the backend over HTTP/HTTPS is to not send them in plaintext. For example, it is possible to send md5 digests of login information in an ajax call – and authentication information like passwords etc. should also never be stored as plaintext in your database on the backend.

You might find this https://code.google./p/crypto-js/ interesting.

发布评论

评论列表(0)

  1. 暂无评论