Laravel Docs

فا | EN
Home / Validation & Security / Hashing

Hashing

Hashing passwords and sensitive data

Hashing is the process of converting data to a one-way value.


Usage:


  • Password hashing
  • Data integrity
  • Security

Examples

Hashing Password

$hashed = Hash::make('password');

if (Hash::check('password', $hashed)) {
    // Password matches
}

Hashing and checking password.

Related Topics

  • Encryption
  • Authentication
  • Accessors & Mutators
← Back to Category
← Previous Topic Next Topic →

© 2025 Laravel Documentation. All rights reserved.