Input Validation (OCR GCSE Computer Science): Flashcards
📚Flashcards
Practise the cards
14 cards from this deck
ShowHide
Practise the cards
14 cards from this deck
Input validation
Input validation
Ensuring data entered is sensible, reasonable & meets criteria
Input validation vs sanitisation difference
Input validation vs sanitisation difference
Validation checks criteria; sanitisation removes harmful chars
Input sanitisation purpose
Input sanitisation purpose
Removes unwanted/harmful characters before data is processed
Attack prevented by input sanitisation
Attack prevented by input sanitisation
SQL injection
Check digit validation
Check digit validation
Last digit(s) verify other digits are correct
Format check validation
Format check validation
Ensures data follows a specific format
Length check validation
Length check validation
Checks input data is the correct length
Lookup table validation
Lookup table validation
Checks data matches values from a predefined list
Presence check validation
Presence check validation
Ensures data is entered into a required field
Range check validation
Range check validation
Ensures value falls within a specified range
Example of format check
Example of format check
Date must follow DD/MM/YYYY format
Example of range check for age
Example of range check for age
Age must be between 0 and 120
Min password length in examples
Min password length in examples
At least 8 characters
Simple authentication system
Simple authentication system
Validates username & password match predefined credentials
