nib Posted March 29, 2014 Share Posted March 29, 2014 Well, I have recently started PHP and barely know anything about MySQL. I was wondering if there was a tutorial online thats good enough and can teach me how to create passwords in PHP, encrypt them and then use those passwords to pull data from the MySQL table ? Quote Link to comment https://forums.phpfreaks.com/topic/287377-help-required-using-mysql-and-php/ Share on other sites More sharing options...
mac_gyver Posted March 29, 2014 Share Posted March 29, 2014 (edited) the password hashing (sha1) used by that tutorial (reference to a reply that has since been removed) is NOT recommend to be used for password hashing - It is not recommended to use this function to secure passwords, due to the fast nature of this hashing algorithm. See here for details. the code also has some questionable logic and user message usage that will leave you guessing what is really happening with the validation. and since this isn't a question about code the OP has that he needs help with, moving thread to the misc forum section... Edited March 31, 2014 by mac_gyver ajusted for removed reply above this one Quote Link to comment https://forums.phpfreaks.com/topic/287377-help-required-using-mysql-and-php/#findComment-1474380 Share on other sites More sharing options...
nib Posted March 29, 2014 Author Share Posted March 29, 2014 So, now which tutorial should I read, @mac_gyver ? the password hashing used by that tutorial is NOT recommend to be used for password hashing - the code also has some questionable logic and user message usage that will leave you guessing what is really happening with the validation. and since this isn't a question about code the OP has that he needs help with, moving thread to the misc forum section... Quote Link to comment https://forums.phpfreaks.com/topic/287377-help-required-using-mysql-and-php/#findComment-1474381 Share on other sites More sharing options...
mac_gyver Posted March 29, 2014 Share Posted March 29, 2014 (edited) the quote in the reply i posted contains a link to the current best method/recommended php based password hashing information. as to tutorials, i/we don't have a list of "here is the best tutorial available to do ________" because there are multiple ways to approach a problem, with different needs/features, and even different ways of integrating the code into the style of coding used to create the web site. tutorials should just be treated as a guide to get you started, i.e. here's how someone at some point in time solved a problem. the problem with a lot of the information posted on the Internet is it was thrown together as an example, rather than being an actual, complete, tested, and working script. the way to get it to the point of having an actual, complete, tested, and working script is is to think about what the code is doing and relate it to what you want your code to do. Edited March 29, 2014 by mac_gyver Quote Link to comment https://forums.phpfreaks.com/topic/287377-help-required-using-mysql-and-php/#findComment-1474383 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.