Skip to content
Sharp

Authentication · interview question

How does the 'Work Factor' in BCrypt protect against brute-force attacks?

Multiple choiceMediumchapter-17-curatedpremiumauthenticationsalting-and-bcrypt
Choose one answer
Answer and explanation

Correct answer

A. It adjusts the computational cost of hashing.

Why

The 'Work Factor' in BCrypt determines the number of iterations used during the hashing process. Increasing the Work Factor increases the time required to compute the hash, thus making brute-force attacks more time-consuming and costly.

Test yourself on Authentication

A free test with instant, explained results. No account needed.

Start free test
All Authentication questions →