2.3 Robust Programs Flashcards
What is data validation?
Validation is a check made by a computer to ensure that the data entered is sensible or reasonable.
What is Authentication?
Authentication is a coding method to check that a user is who they say they are and allowed to accesses the program
What is Input sanitisation?
Input sanitization trims or strips strings, removing unwanted characters from strings
What is Presence check?
Checks that data has been entered into a field for example in most database a key field cannot be left blank.
How is validation different from input sanitisation?
Validation is a check made by a computer to ensure that the data entered is sensible or reasonable however sanitization tries to fix the problem by removing unwanted characters from strings
What is Maintainability?
If a program is to be defensive against attacks then it has to be maintained and up to date
What is Iterative testing?
It is testing a code as you create it.
What is Runtime error?
An error that happens while running the program. It is often due to problems with the computer and not with the code itself.
What is a Syntax error?
Syntax errors are mistakes in the way that the code is written
What is a Logic Error
A logic error produces unintended or undesired output or other behavior, although it may not immediately be recognized
Give at least 3 different types of Validation
Check Digit, Format Check, Length Check, Lookup Table, Presence Check, Range Check, Spell Check.
How can we mitigate misuse?
Limiting the number of logon attempts
Ensuring the code is robust in validating the data entered
Give at least 3 different types of Authentication
Pin, Capture, Fingerprint, Eye Scanner, Key Cards, Physical Authenticator, Email Authentication.