title: How to Generate Random Password in Codeigniter for forgot password
body: <p>Hello I am working with Codeigniter and I want to generate the random password.</p>
  
  <p>I developed signup functionality using </p>
  
  <pre><code>crypt($password) 
  </code></pre>
  
  <p>login functionality check password following.</p>
  
  <pre><code>if (crypt($password, $hashed_password) === $hashed_password)
  {
      return $query-&gt;result();
  }
  </code></pre>
  
  <p><strong>I am developing Forgot functionality.</strong></p>
  
  <p>How to send random generated password to user mail When I am using crypt() login time.</p>