课程: Programming Foundations: Web Security
今天就学习课程吧!
今天就开通帐号,24,600 门业界名师课程任您挑!
Simple is more secure
- Our second general security principle is simple is more secure. Let me start by asking a question. Which would be easier to secure, a house that had only one door or a house that has five doors and five windows? The answer is obviously the house with one door. The larger and more complex a system becomes, the harder it becomes to secure. Larger systems have more areas of concern. They have a larger attack surface to keep secure. More complex systems increase the likelihood of bugs or of making mistakes. Simpler is always more secure. When programming, there's several techniques that you can use to reduce complexity and therefore increase security. Giving clear names to functions and variables makes your code easier to read and to understand. Write code comments. Describe what the code is intended to do, how it does it and why you chose a particular approach. List the expected inputs and the expected outputs of a…
内容
-
-
-
-
Least privilege3 分钟 33 秒
-
(已锁定)
Simple is more secure2 分钟 40 秒
-
(已锁定)
Never trust users3 分钟 7 秒
-
(已锁定)
Expect the unexpected2 分钟 10 秒
-
(已锁定)
Defense in depth3 分钟 23 秒
-
(已锁定)
Resilience4 分钟 31 秒
-
(已锁定)
Security through obscurity3 分钟 56 秒
-
(已锁定)
Deny-listing and allow-listing3 分钟 3 秒
-
(已锁定)
Map exposure points and data passageways3 分钟 34 秒
-
-
-
-