Hey William,<br><br>I just rechecked it again on D6, works fine.<br>MD5 has a property that when a hash is generated, it will always yield the same hash for a particular word / password<br><br>The case you are talking of can be in D7, please confirm if it is drupal 6 of drupal 7<br>

<br><div class="gmail_quote">On Wed, Mar 16, 2011 at 10:14 AM, prothero <span dir="ltr">&lt;<a href="mailto:prothero@geol.ucsb.edu">prothero@geol.ucsb.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div style="word-wrap: break-word;">Tnx. But, when I use md5(&quot;myPassword&quot;), I don&#39;t get the same result that is shown in Drupal&#39;s users table (the &#39;pass&#39; field) for that user. There must be something else.<div>

Bill</div><div><div class="im"><br><div> <span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style="word-wrap: break-word;">

<span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style="word-wrap: break-word;">

<span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><p style="margin: 0px;">

<font style="font-size: 12px;" face="Helvetica" size="3"><span style="font-size: 12px;"><span style="font-size: 12px;"><span style="font-size: 12px;">William A. Prothero</span></span></span></font></p><p style="margin: 0px;">

<span style="font-size: 12px;"><a href="http://earthednet.org/" target="_blank">http://earthednet.org/</a></span></p><br></span></span></span></span><br></div></span></div></span> </div><br></div><div><div><div></div><div class="h5">

<div>On Mar 15, 2011, at 8:46 PM, Vaibhav Jain wrote:</div><br></div></div><blockquote type="cite"><div><div></div><div class="h5">Hello,<br><br>The password in Drupal is generated via MD5 function which is a default in PHP.<br>

Apart from the password, there is nothing that gets added to the password.<br>You can check function user_save in user module, which directly sends the value in md5 format, that will provide you some more clarity.<br> <br>

I think you are talking of a SALT value that gets added, but this is not the case in drupal 6, as it is using MD5<br>However, in Drupal 7, SALT is used and MD5 is not followed to save the passwords.<br><br><div class="gmail_quote">

 On Wed, Mar 16, 2011 at 5:09 AM, prothero <span dir="ltr">&lt;<a href="mailto:prothero@geol.ucsb.edu" target="_blank">prothero@geol.ucsb.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

 <div style="word-wrap: break-word;">I am going to manipulate the Drupal users table externally. I know that the password in Drupal 6 is generated as an md5 hash, but I&#39;m wondering what the input to the md5 function is. Obviously, it includes the password, but what else?<div>

 Tnx,</div><div>Bill</div><div><br><div><br><div> <span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style="word-wrap: break-word;">

 <span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style="word-wrap: break-word;">

 <span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style="margin: 0px;">

 <font style="font-size: 12px;" face="Helvetica" size="3"><span style="font-size: 12px;"><span style="font-size: 12px;"><span style="font-size: 12px;">William A. Prothero</span></span></span></font></div><div style="margin: 0px;">

 <span style="font-size: 12px;"><a href="http://earthednet.org/" target="_blank">http://earthednet.org/</a></span></div><br></span></span></span></span><br></div></span></div></span> </div><br></div></div></div><br>--<br>

 [ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Vaibhav Jain<br></div></div> -- <br><div class="im">

[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]</div></blockquote></div><br></div></div><br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Vaibhav Jain<br>