What is the purpose of the `BCrypt` hashing algorithm in Java?
BCrypt is a password hashing algorithm that incorporates salting and allows for a configurable work factor to increase security over time.
Well done! You're absolutely right. BCrypt is designed to be computationally expensive and adapt over time.
Can you explain how the work factor in BCrypt affects the security of stored passwords?