mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-05 18:48:41 +00:00
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.