1/5
on card 4
How can you ensure password databases can be protected as much as possible?
Two options
You must hash passwords to protect them from intruders or leaks. Passwords can contain sensitive information about people.
Or, you can use passwords as a key. This is where a registered new user has their password used as a key to encrypt the token. This token is then stored in the database to be later retrieved using the username when a user logs back in.
This password is then used to decrypt the token to see if it matches the expected outcome
This lacks the performance of hashing and is also more vulnerable as it can be reversed and, if the password is forgotten you cannot check the user exists and is being accessed by the correct person.
(p 8-10)

How does hashing passwords ensure that we aren’t storing plain text passwords?
Hashing is when a one-way mathematical operation is applied to the password. The result is then stored with the username.
When a new password is given on a login, it is hashed and checked to see if it matches the stored password
Hashed passwords are only as secure as the system that hosts them.
How can hash passwords be threatened
Brute Force
Very expensive - the attacker has to pick hundreds of millions of charector combos (like ‘password’) to then hash and compare to those in the database to get a match.
Ways to make a brute force attack better:
Dictionary attacks
Use passwords that have been exposed from other real-world breaches
Rule-Based Attacks
Apply common, human patterns to words
Like appending numbers/years (password2026)
Mask Attacks
If the attacker knows the enforces rules on a password (like must be 8 characters or must have 2 symbols). they then will restrict their guesses to be only combinations matching this pattern.
Describe the rainbow table method and declare how it can be thwarted
how the rainbow table is made from chains where a initial password is fed through reduction functions to generate password hash pairs. Table is then represented in a particular way, a attacker may then use it to locate a matching password from a hash they have found
Rainbow table is a lookup table that contains pre-computed pairs of plaintext passwords and their hash values
It has highly efficient routines that make it extremely fast to use, but may require significant memory to store
A hash-value chain is used to generate hundreds or thousands of password permutations, but, only the start and end value needs to be stored for the chain, saving significant storage.
Each chain contains a reduction function that computes the next permutation of a password from the previous hash value for each step in the chain., the same functions are used in each chain
27 - 48 to see how it works
Rainbow tables are thwarted via Salting
A salt is a large random number that is added to a users password. This combination is then hashed together.
Salting removes the ability of the rainbow table to find matches through pre-computer common password hash-values. With salting, a separate table would be needed for each salt.
strong passwords can also assist in removing rainbow tables successes

Describe how modern hashing functions are inefficient in terms of CPU requirement or memory requirements
so that a attacker cannot replay billions of hashes per second
MORE
Phishing - recognise the signs of a phishing email, how to prevent fishing and does MFA prevent fishing.
Signs of a phishing email
unlikely email, misspellings, odd links
Multi-Factor Authentication
can assist in requiring a token to be generated and passed back to the users phone to be entered