Password Hashing in CodeIgniter — a practical guide to CodeIgniter password hashing with clear examples you can reuse in real projects.
CodeIgniter Tutorial Series (53/74). Prefer one article? Read the complete CodeIgniter tutorial.
Short description
Never store plain-text passwords. Use `PASSWORD_DEFAULT` and verify on login.
Hash + verify
$hash = password_hash('Secret123!', PASSWORD_DEFAULT);
$ok = password_verify('Secret123!', $hash); // true