Glossary

bcrypt

A password hashing method designed to be slow, so guessing passwords takes too long.

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.

Found this useful?

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.

Buy me a sodaBuy me a coffee

Want more on this?

Tell us which part was not clear, ask for a follow-up lesson, or request a lesson on any topic. We read every request.

I would like
Only to tell you when it is ready.

WhatsApp

Join the channelChat with us

Free lessons and updates in the channel. Questions about learning or training? Chat with us.