UOTS-Owner Posted December 29, 2021 Share Posted December 29, 2021 hello, I'm after a sql so when a user logs in their password is updated from the current hash back to md5 please. Or a code to check the password matches their current hash password when logging in. Quote Link to comment Share on other sites More sharing options...
AdamHull Posted December 29, 2021 Share Posted December 29, 2021 How do you hash currently? I would never revert back to md5 as this is insecure Quote Link to comment Share on other sites More sharing options...
Dayo Posted December 29, 2021 Share Posted December 29, 2021 Why would you ever want to hash back to md5 almost every other hashing method is better Quote The MD5 message-digest algorithm is a cryptographically broken but still widely used hash function producing a 128-bit hash value. Although MD5 was initially designed to be used as a cryptographic hash function, it has been found to suffer from extensive vulnerabilities. It can still be used as a checksum to verify data integrity, but only against unintentional corruption. It remains suitable for other non-cryptographic purposes, for example for determining the partition for a particular key in a partitioned database, and may be preferred due to lower computational requirements than more recent Secure Hash Algorithms algorithms.[3] https://en.wikipedia.org/wiki/MD5 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.