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

  • Home
  • SEARCH
  • 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 8044323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:11:32+00:00 2026-06-05T05:11:32+00:00

I would like to build my own login system to be as secure as

  • 0

I would like to build my own login system to be as secure as possible.
Encrypting passwords with MD5 and stripping extra data with

$password = strip_tags($password);
$password = mysql_real_escape_string($password);
$password = md5($password);

I’ve seen tokens in some examples but dont really understand the usefulness.
edit – I was corrected and it is salts and not tokens I have seen.

  • 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-05T05:11:34+00:00Added an answer on June 5, 2026 at 5:11 am

    Its not called a token, its called a salt.

    If we don’t salt the password, you could have duplicate password hashes.

    If I and someone else has the same password (lets say StackOverflow)

    • Me – StackOverflow – 84d7dc19766c446f5e4084e8fce87f82
    • Someone else – StackOverflow – 84d7dc19766c446f5e4084e8fce87f82

    But with a salt,

    • Me – StackOverflowMeSalt – 9a0126445be2d0b0bc6ab9728aae1323
    • Someone else – StackOverflowSomeone elseSalt – 66f6bd8d92f084dabd7e2dd588b2bfcb

    Also, theres no need to use mysql_real_escape_string or strip_tags on a password when its hashed. This will make the passwords more insecure.

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

Sidebar

Related Questions

I would like to build my own RESTful API Server and I have no
By using paho(java) to build my own MQTT client.I would like to do same
I build a composite widget and would like it to have it's own accelerators
I would like to build my own interface for gmail, by programatically interacting with
I would like to build my own pdf-reader in Java and would like to
I would like to build a php script that automatically generates a new id
I would like to build a cypher with python which decoding text by repeatedly
I would like to build up a new IDocument object step by step using
I would like to build modules via an aggregator, but avoid the aggregator project
I would like to build two different versions of my app using different android:minSdkVersion.

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.