MD5 password twice

Posted by NoviceCoding on Stack Overflow See other posts from Stack Overflow or by NoviceCoding
Published on 2010-12-27T06:46:27Z Indexed on 2010/12/27 6:54 UTC
Read the original article Hit count: 204

Filed under:
|
|
|
|

I know MD5's safety is under question lately and this is the reason a lot of people are using salt (I dont understand this at all btw) but I was wondering if you wanted to easily implement a safe system in php can you just md5 something twice?

like test > 098f6bcd4621d373cade4e832627b4f6 > fb469d7ef430b0baf0cab6c436e70375

So basically:

$val = 'test';
$val = md5($val);
$val = md5($val);

Would that solve the whole rainbow security stuff? Is there an easy/noob proof way of making secure database passwords in php?

© Stack Overflow or respective owner

Related posts about php

Related posts about security