#1 India's Top IT Training Institute

×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →

Hashing Passwords with bcrypt or argon2

Laravel never stores passwords in plain text. Instead, it hashes them using strong, purpose-built algorithms designed to resist brute-force and rainbow-table attacks.

Hashing on Registration

$user->password = Hash::make($request->password);

Hash::make() applies the configured hashing driver — bcrypt by default — turning the plain password into a long, irreversible hash.

bcrypt vs argon2

AlgorithmNotes
bcryptLaravel's default; well-tested, widely supported
argon2i / argon2idNewer, memory-hard algorithm, configurable memory and thread cost

The driver is set in config/hashing.php and can be switched without changing how the rest of the application calls Hash::make().

Verifying a Password

if (Hash::check($request->password, $user->password)) {
    // password matches
}

Hashing protects stored credentials, but an application also needs to guard the data flowing in and out of every request — which brings up XSS and SQL injection.

Ready to master Laravel Training Course?

Join Uncodemy's hands-on Laravel program and build real, production-ready applications.

Explore Course