title: How to decrypt Hash Password in Laravel
body: <p>I have google this alot, but unfortunatilty found no working solution.</p>
  
  <p>I know its a bad technique, but I need to send user its password by email. </p>
  
  <p>I have manage to sent user Hash password, but i am unable to decrypt this password. </p>
  
  <p>The following is the procedure i am using.</p>
  
  <pre><code>    $results = DB::select("select * from dockl_users where email='" . Input::get('email')  ."';");      
  
                  foreach($results as $data){
                  $password=          $data-&gt;password;
                  $email=             $data-&gt;email;
  
                 }
  
              Mail::send('passwordRecovery', array('email' =&gt;$password), function($message)
              {
                  $message-&gt;to(Input::get('email') )-&gt;subject('Password Recovery');
              });
  </code></pre>
  
  <p>The above code send <code>Encrypted</code> password to the user by email but when i try to decrypt, it gives me following error message.</p>
  
  <pre><code>$decrypt= Crypt::decrypt($data-&gt;password);  
  </code></pre>
  
  <blockquote>
    <p>Invalid data.</p>
  </blockquote>
  
  <pre><code>throw new DecryptException("Invalid data.");
  </code></pre>
  
  <p>Kindly guide me how to achieve this..</p>