devstygian / devstygian/Resto-POS
feat: Implement Password Security By Adding A Salt Before Hashing.
- Vorherrschende Sprache
- PHP
- Sterne
- 4
- Forks
- 5
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
### Description
Enhance password security by adding a salt before hashing.
### Expected Behavior
- Generate a unique random salt for each user password.
- Combine the salt with the password before hashing.
- Store the hash and salt in the database.
- Integrate under Account Management settings.
- Why We Need Salt
- Prevents attackers from using precomputed hash tables (rainbow tables) to guess passwords.
- Ensures that identical passwords have different hashes, making database breaches safer.
### Example:
- Password: mypassword123
- Salt: a1b2c3
- Hash salt + password → store hash and salt
- On login, combine entered password + stored salt, hash, and compare
Beitragsleitfaden
Rechercherichtung
Beginne damit, den Account Management-Code zu lokalisieren, der Passwörter speichert, sowie den Pfad zur Anmeldeüberprüfung. Verfolge, wie Passwortdatensätze geschrieben und überprüft werden, und bestätige anschließend, dass jeder Benutzer über ein eindeutiges gespeichertes Salt verfügt, der Salted Hash persistiert wird und die Anmeldung nur erfolgreich ist, wenn das eingegebene Passwort übereinstimmt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- php
- Bereich
- authentication, backend, security
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100