# PHP Password Hasher

The PHP Password Hasher generates secure password hashes for use in PHP login systems.

This tool is useful when:

- Adding users directly in phpMyAdmin.
- Resetting passwords during development.
- Testing login systems.
- Verifying that a password matches a stored hash.


---

## Using the Hash in phpMyAdmin

Example:

```sql
INSERT INTO users (username, password)
VALUES (
    'admin',
    '$2y$10$z2QfYt0B0e9D9I5Yj7M4VuqhZgN3bU5QeK2Yl2sL5vLJ6m6r4Q9uO'
);
```

---

## Accessing the Tool

[Open PHP Password Hasher](https://tools.napper.au/password-hasher/)

---

## Remember

Passwords should **never** be stored as plain text in a database.

Always use:

```php
password_hash()
```

to create passwords and

```php
password_verify()
```

to check passwords during login.