I have a program that hashes some passwords and saves them to .txt files, I'm not using databases for storage.
My questions is, is it considered more secure to save hashed passwords in one file or to have them separate?
admin.txt - hashed password
user1.txt - hashed password
Passwords.txt = admin/user1's hashed passwords on separate lines
Is one more secure than the other? The only issue with the second example is how would you determine whose password belongs to who.
I guess in my opinion I would choose the first example because that way you can also compare entered usernames so an attacker cannot just spam the password button with potential passwords.