Files
Sharpbin/PasteBin
whoswhip 517a82d058 Enhance password security and simplify configuration
Turns out I should've looked into the bcrypt hashing algorithm a bit more, turns out you can have a unique salt per hash and can just use a verify method

- Remove `salt` and `smallerSalt` fields from `Program` class.
- Replace `Password` with `PasswordHash` in `Paste` and `PrivatePaste` classes.
- Generate a new salt for each password hash.
- Use `BCrypt.Net.BCrypt.Verify` for password verification.
- Remove `salt` and `smallerSalt` logic from `config.json`.
- Ensure consistent use of `PasswordHash` for storing and verifying passwords.
2024-10-29 17:11:43 -04:00
..