
In plain words
bcrypt is a password-hashing function. It adds a salt for you and is deliberately slow, so an attacker trying billions of guesses gets only a trickle per second.
Its slowness is set by a "cost" (Laravel calls it rounds). Laravel uses bcrypt by default with a cost of 12, set in config/hashing.php.
One limit to know
bcrypt only looks at the first 72 bytes of a password. For normal passwords this never matters, but very long passphrases are cut off silently.
See Hash passwords properly and Argon2id.

Every lesson stays free. Tap the thumbs up so we know what works, or say thanks with a soda or a coffee: it pays for hosting and new lessons.


