My project requires list of all users with their password. Drupal stores these passwords after applying an MD5 hash. How can I get the original password for the user?
My project requires list of all users with their password. Drupal stores these passwords
Share
MD5 is a one-way hash function. There’s no non-trivial way to reverse it, which is why it (and other one-way hash functions) are used for storing passwords. However, you might be able to use rainbow tables to try to reverse the hash, but the effectiveness depends on the complexity of the password and the salt used (if one is used). Rainbow tables are also a very costly in terms of time and computational resources.
I would recommend reconsidering why you need the password. Generally, working with user passwords is a bad idea. There’s probably an alternative solution out there.