Hello! I'm just setting up a Snychronet instance and reading through the configuration docs in my spare time. I noticed that user information is stored in plaintext flatfiles (which is in line with ye olde days.) Are there any existing password hash modules for handling login so that passwords are obfuscated for new users? If not, would it be possible to add into the login process? I haven't coded in C for a number of years now but would be willing to go poke at it.
No, there's no mechanism for hashing or encrypting the passwords in the Synchronet userbase (today, that's data/user/user.tab). A one-way hash would be particularly tricky because Synchronet supports a bunch
of
digest-based authentication methods that all require different hashes of the password along with challenge/nonce/sale (so you need the original password to compute those).
We could encrypt the passwords on disk (reversable to plaintext again, for the above stated reasons), but then you need to have/store a key to decrypt them somewhere and how is that any more secure than the
user.tab file? It's a can of worms that hasn't be worth dumping out and sorting through.
have/store a key to decrypt them somewhere and how is that any more
secure than the user.tab file? It's a can of worms that hasn't
be worth dumping out and sorting through.
| Sysop: | DaiTengu |
|---|---|
| Location: | Appleton, WI |
| Users: | 1,096 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 41:52:40 |
| Calls: | 14,059 |
| Files: | 187,099 |
| D/L today: |
1,909 files (544M bytes) |
| Messages: | 2,485,852 |