Defensive Design Flashcards
What are the 4 types of defensive design?
Input sanitisation, planning for contingencies, anticipating misuse, authentication.
What are the 5 types of validation?
Format check, length check, present check, type check, range check.
What is verification?
Checks accuracy of data by comparing it to an original source.
What is validation?
Checking data input meets specific criteria, e.g. length, before it is processed.
What is input sanitisation?
Removing any white space and turning the format into the one the program is expecting so no error message occurs.
What is length check?
Where the length of data is checked to make sure it’s valid. E.g. a postcode.
What is format check?
To check data is in the correct predefined format. E.g. dd/mm/yyyy .
What is type check?
Check that makes sure data is correct data type. E.g. integer, real, Boolean or string.
What is range check?
Check that makes sure data is within a specific range required. E.g. menu options 1 to 3.
What is presence check?
Check that makes sure all data has been entered. E.g. pressing enter before inputting, checks all fields are entered.
What are the 2 types of verification?
Double entry (entered twice and checked), proofreading )(data matches original document).