Is This Password Algorithm Right Or Nonsense - Webmasters - Nairaland
Nairaland Forum › Science/Technology › Webmasters › Is This Password Algorithm Right Or Nonsense (738 Views)
| Is This Password Algorithm Right Or Nonsense by 0luwatope(op): 10:16am On Jan 19, 2016 |
I found this password algorithm on a website that's giving tutorial on how to safely secure passwords from hackers that can manipulate sha1 and md5 hashes He added salt to the password and I think the salt don too much for the password self This is the algorithm $password=validate($_POST['password']); // validate is a user defined function that contains strip_tags, htmlspecialchars and all that $salt="F±:9x;a|6%[`U”Y_?v~0o'!÷d\N"; $pass1=sha1($salt.$password); $pass2=md5($salt.$password); $hash="$pass1$pass2"; The $hash the wat to be saved in database // no sane hacker will crack this easily I know but isn't this too much? |
| Re: Is This Password Algorithm Right Or Nonsense by EntclassBlog(m): 8:43pm On Jan 19, 2016 |
0luwatope:Lool.. Is too much, though i love the codes, it remembered me when i use to be on php |
| Re: Is This Password Algorithm Right Or Nonsense by Nobody: 5:01pm On Jan 20, 2016 |
It can still be cracked. The safe way is to make use of mycrypt encryption. Key based encryption. |
| Re: Is This Password Algorithm Right Or Nonsense by 0luwatope(op): 10:07pm On Feb 05, 2016 |
coolsix:Does that mean if I ue a key based encryption, I'll be able to decrypt it with that same key.... I don't want to encrypt or decrypt, I want one way hashing, according to my kid knowledge, that salt should act as the key |
| Re: Is This Password Algorithm Right Or Nonsense by Nobody: 10:22pm On Feb 05, 2016 |
0luwatope:One way hashing can still be dehashed! Yes, i have seen a few cases even with salt. But the stronger the salt, the stronger the hashing. ![]() |
| Re: Is This Password Algorithm Right Or Nonsense by 0luwatope(op): 8:43am On Feb 06, 2016 |
coolsix:eleyi giidi gan..... No need to ask questions jhoooor.... My God protect my website |
See The Nonsense I Got From Web4africa • A Guide To Manage Google Algorithm Changes • 2 • 3 • 4
Experienced Bloggers Please Help Me Urgently • Need Uk Or Usa Google Adsense Account Asap • Get 1000 Members In Your FB Group For 25$
