title: how to decrypt password in mysql database?
body: <p>When i opened the database the password looks like this</p>
  
  <pre><code>|user_name|user_pass                         |
  |--------------------------------------------|
  |marse    |$1$ma000000$4zr8TJkJ9zS60NuToTxjA.|
  </code></pre>
  
  <p>I know that my password is not like that because I created that account for testing purposes but when I opened the database the password become like that. Is there some encryption going on? If there is, how to decrypt it?
  Because currently I am working on a login page, where my php code will compare the user input with the one with the database.
  The code that I use to compare is like this</p>
  
  <pre><code>&lt;?php
  
  // Grab User submitted information
  $name = $_POST["users_name"];
  $pass = $_POST["users_pass"];
  
  // Connect to the database
  $con = mysqli_connect("localhost","username","password");
  // Make sure we connected succesfully
  if(! $con)
  {
      die('Connection Failed'.mysql_error());
  }
  
  // Select the database to use
  mysqli_select_db("cvgcrm",$con);
  
  $result = mysqli_query("SELECT * FROM users WHERE user_name = $name");
  
  $row = mysqli_fetch_array($result);
  
  if($row["user_name"]==$name &amp;&amp; $row["user_pass"]==$pass)
      echo"You are a validated user.";
  else
      echo"Sorry, your credentials are not valid, Please try again.";
  ?&gt;
  </code></pre>