Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8831365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:17:37+00:00 2026-06-14T08:17:37+00:00

I want to create a user management system for my site , what is

  • 0

I want to create a user management system for my site ,

what is better for security and performance .

Type 1 :

table_user : user_id , user_name , user_email , user_password . user_phone ...

or

Type 2 :

table_user : user_id , user_name , user_email ...
table_pass : user_id , user_password .
table_phone: user_id , user_phone .

which one is better ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T08:17:38+00:00Added an answer on June 14, 2026 at 8:17 am

    Ideally:

    • Don’t store passwords at all (even encrypted). Store hashes derived from passwords.
    • Salt the passwords to prevent rainbow attacks.
    • Put hashes on a separate database server, behind its own firewall and its own well-defined API1. This API should do only three things:
      1. For given username, retrieve the corresponding password hash.
      2. For given username, set the new hash (to support resetting the password).
      3. Remove given username and its hash (to support user unregistration).
    • Do the same for salts: put them on their own server and behind their own firewall and API. This API should do only three things:
      1. For given username, retrieve the corresponding salt.
      2. For given username, set the new salt to a random value (to support resetting the password).
      3. Remove given username and its salt (to support user unregistration).
    • Both hash and salt servers should be cut-off from the world (and from each other) and only accessible from the server that runs your Web application (i.e. PHP or ASP.NET or whatever…).

    When user tries to log-on by entering username and password:

    • Make sure this is done through HTTPS so the entered data safely reaches your server.
    • Call the API that retrieves the password hash for the username.
    • Call the API that retrieves the salt for the username.
    • Salt and hash the password entered by the user and compare it to the retrieved hash.
    • If they match, user is granted the access.

    By their nature, hashes are irreversible – other than the user, nobody, not even you, knows the exact password. In case the user forgets the password, you can’t send the password to them, but you can allow them to reset the password assuming they pass some additional verification (i.e. have access to a particular e-mail address and/or answer a secret question).

    BTW, log-on is a relatively rare operation, so it’s unlikely to pose a performance bottleneck unless you completely disregard proper indexing.


    1 E.g. implement a Web Service, then open only the port needed for that Web Service and nothing else.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want create wordpress website into which I want create user management... That means
I want to create a small document management system. There are several users who
I want to create a portal website for log-in, news and user management. And
Exception Handling in java based we services JAX-WS. I want to create user defined
ASP.Net 3.5 I want to create a user control that contains the ListView and
I have a stored procedure in which i want to create a user defined
I am new to oracle , i want to create a user named as
I want to create a simple user registration form with First / Last name,
I want to create a new Rally user with the following C# code DynamicJsonObject
I want to create a read-only user in PostgreSQL. The intention is to have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.