今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Sensitive data
- [Instructor] One of the worst sins you can commit is leaking your user's data. If a hacker crushes your system, that's on you. But if personal information of your users gets out, that will break their trust in you, and that is much worse. Say we have a social network. In the social network, we have a user with login, age, and address, and we have functions to find the user in the database, and to find the friends of a user, which currently is not implemented and returning an error. And the HTTP server has a handler for the friends. So, it gets the login from the query, checks that there is a login, finds the user in the database, if it doesn't find it, return an error. Find the friends, and again, if there is an error, return an error. And finally return JSON of the friends. Let's run it. So Run, Run without Debugging. And again, I'm going to view the Debug Console. So now we can test it out. So I can do…