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 8652645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:21:19+00:00 2026-06-12T14:21:19+00:00

$salt = uniqid(); $crypt = md5($password , $salt); $new_pass = $crypt.’:’.$salt; In the database:

  • 0
$salt = uniqid();
   $crypt = md5($password , $salt);
   $new_pass = $crypt.':'.$salt;

In the database: ­ot÷„[ªà%Ûʼn¹:17b8bc731c322c9e05a26666458117f4

Is this a syntactical error? Or is the database not set up with the correct character formatting?

  • 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-12T14:21:20+00:00Added an answer on June 12, 2026 at 2:21 pm

    You enabled raw_output

    PHP DOC

    If the optional raw_output is set to TRUE, then the md5 digest is instead returned in raw binary format with a length of 16.

    Change

    $crypt = md5($password , $salt);
                           ^------ You moved the salt to raw_output 
    

    To

    $crypt = md5($password . $salt);
                           ^------ Should be this 
    

    For security reasons i would not advice you to use md5 for password hashing. MD5 is so badly broken that it no longer takes so long to find an appropriate collision or reverse hash. Once broken, a hash algorithm only gets worse, never better therefore it would be better to choose an unbroken hash algorithm.

    Standard

    • sha1
    • hash (sha256 & sha512)

    Better Alternatives

    • password_compat
    • Portable PHP password hashing framework
    • PBKDF2
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

is there any way I can reproduce this ruby function: def Password.hash(password,salt) Digest::SHA512.hexdigest(#{password}:#{salt}) end
I want to store a (random) salt next to the password in the database.
salt = 'yhnqazolr123098765' password = bcrypt.hashpw(password,salt) repeatpassword = bcrypt.hashpw(repeatpassword,salt) I got error for the
Does this look like a safe salt to use with a password? Any improvements
If the password salt for keys are viewable does it not improve security compared
re question non-random-salt-for-password-hashes Mr Potato Head states that the use of md5 instead of
Assuming we have a salt that's in the database and that has been generated
I've created a salt using; md5(rand(0,10000000)); (there is probably a better way?) There doesn't
My understanding is that a salt is not intended to be secret, it is
I have a function to generate an 11 character salt. This salt can include

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.