Defensive Design Considerations (OCR GCSE Computer Science): Flashcards

📚Flashcards
Defensive Design Considerations
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

12 cards from this deck

Show

Defensive design

Programming strategies to handle unexpected inputs or misuse

Robust programs

Programs that function correctly when faced with errors or improper data

Input sanitisation

Cleaning data to remove potentially harmful characters or code

Input validation

Ensuring data entered is appropriate and meets expected criteria

Purpose of anticipating misuse

Assume users may use program incorrectly or maliciously

How to prevent buffer overflow

Limit the length of text inputs

How to prevent SQL injection

Sanitise user inputs in forms

Planning for contingencies

Handling unexpected events like file not found or network failure

Authentication

Ensures users are who they claim to be

Two-step authentication

Extra verification layer using code sent to phone or email

Purpose of limiting login attempts

Prevents brute-force attacks

Edge cases

Boundary conditions like empty list, large numbers, special characters

Explore OCR GCSE Computer Science Revision Notes by Topics

Explore OCR GCSE Computer Science Model Answers by Topics

Explore OCR GCSE Computer Science Quizzes by Topics

Explore OCR GCSE Computer Science Exam Questions by Topics

Join 100,000+ GCSE students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.