RaythMistwalker Posted April 18, 2011 Share Posted April 18, 2011 Ok i have just installed anope irc services on my irc network and they use MySQL databases. Through this, I can use the same info/passwords to link user/website accs. However it stores passwords as md5:someHashHere How would i get a php script to remove the md5: from the start, or would it just be easier checking against md5:$md5(enteredpassword)? Quote Link to comment https://forums.phpfreaks.com/topic/234065-removing-something-from-start-of-text/ Share on other sites More sharing options...
AbraCadaver Posted April 18, 2011 Share Posted April 18, 2011 You could do: substr($password, 4); Or do the check adding the md5: as you've shown. Quote Link to comment https://forums.phpfreaks.com/topic/234065-removing-something-from-start-of-text/#findComment-1203033 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.