Defensive Design Considerations (OCR GCSE Computer Science): Flashcards
📚Flashcards
Practise the cards
12 cards from this deck
ShowHide
Practise the cards
12 cards from this deck
Defensive design
Defensive design
Programming strategies to handle unexpected inputs or misuse
Robust programs
Robust programs
Programs that function correctly when faced with errors or improper data
Input sanitisation
Input sanitisation
Cleaning data to remove potentially harmful characters or code
Input validation
Input validation
Ensuring data entered is appropriate and meets expected criteria
Purpose of anticipating misuse
Purpose of anticipating misuse
Assume users may use program incorrectly or maliciously
How to prevent buffer overflow
How to prevent buffer overflow
Limit the length of text inputs
How to prevent SQL injection
How to prevent SQL injection
Sanitise user inputs in forms
Planning for contingencies
Planning for contingencies
Handling unexpected events like file not found or network failure
Authentication
Authentication
Ensures users are who they claim to be
Two-step authentication
Two-step authentication
Extra verification layer using code sent to phone or email
Purpose of limiting login attempts
Purpose of limiting login attempts
Prevents brute-force attacks
Edge cases
Edge cases
Boundary conditions like empty list, large numbers, special characters
