title: How to decrypt the password stored in drupal to wordpress database?
body: <p>I am having forgot password form which is in drupal once user click the save button need to save the changed password in wordpress database user table. how to achieve it?</p>
  
  <pre><code>function wp_login_form_alter(&amp;$form, &amp;$form_state, $form_id) {
  //echo "hi";
  
      if($form_id=="user_profile_form"){
  
          print '&lt;pre&gt;';
          //print_r($form);
          print_r($form_state['user']);
          echo $form_state['user']-&gt;uid;
          echo $form_state['user']-&gt;name;
          echo $form_state['user']-&gt;mail;
          echo $form_state['user']-&gt;pass;
          echo $form_state['user']-&gt;login;
          exit;
          //UPDATE wp_users SET user_pass = md5($new_password) WHERE ID = $user_id
  
  
      }
  }
  </code></pre>