{"id":11590556,"date":"2019-05-31T00:44:09","date_gmt":"2019-05-31T00:44:09","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/drupal-version-6\/"},"modified":"2019-05-31T00:44:09","modified_gmt":"2019-05-31T00:44:09","slug":"drupal-version-6","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/drupal-version-6\/","title":{"rendered":"Drupal Version 6 ?"},"content":{"rendered":"<p>Hi,<br \/>\nI&#8217;m migrating users from Drupal 6.38<br \/>\nIn password.inc it searches for the 3 first letters of the hashed password.<br \/>\nThe options are $S$, $H$ or $P$.<br \/>\nIn any other case the login fails.<\/p>\n<p>I have a hashed password that starts with &#8220;9a0&#8221;, and the plugin didn&#8217;t work.<br \/>\nHowever, when I changed the code of the plugin to simply compare the entered password after MD5, to the stored hashed password, it works.<\/p>\n<p>What&#8217;s the difference between using the _password_crypt function, and just using the MD5 function?<br \/>\nthe _password_crypt function demands that the 1st and 3rd chars are &#8220;$&#8221;.<\/p>\n<p>Could it be that older drupal versions (6) use different MD5 encoding?<br \/>\nIs it safe to just compare passwords using PHP&#8217;s MD5 function?<\/p>\n<p>Thanks and great plugin<\/p>\n","protected":false},"template":"","class_list":["post-11590556","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11590556","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11590556\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=11590556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}