Input Validation (OCR GCSE Computer Science): Flashcards

📚Flashcards
Input Validation
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

14 cards from this deck

Show

Input validation

Ensuring data entered is sensible, reasonable & meets criteria

Input validation vs sanitisation difference

Validation checks criteria; sanitisation removes harmful chars

Input sanitisation purpose

Removes unwanted/harmful characters before data is processed

Attack prevented by input sanitisation

SQL injection

Check digit validation

Last digit(s) verify other digits are correct

Format check validation

Ensures data follows a specific format

Length check validation

Checks input data is the correct length

Lookup table validation

Checks data matches values from a predefined list

Presence check validation

Ensures data is entered into a required field

Range check validation

Ensures value falls within a specified range

Example of format check

Date must follow DD/MM/YYYY format

Example of range check for age

Age must be between 0 and 120

Min password length in examples

At least 8 characters

Simple authentication system

Validates username & password match predefined credentials

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.