How should passwords be recorded in a database?

Asked

Viewed 32 times

1

I am creating a program in Java, connected with a database, my problem is whether I should create a new tebela to save the password and the name of each user or whether I should use this data as client attributes.

Thank you very much!

  • Impossible to answer correctly. It depends on your case. If you want to take advantage of the registration database, you can, but I would still make a separate table (specialization of that register, in a table linked by id). Thus, if I update the registration of a "user customer", the user is updated together. But this is my way of doing it, you have to think about what’s best or most convenient for your specific case. There may be a thousand answers here, but none of them will be "the right one".

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.