View Single Post
Old 10-16-2009, 05:53 PM   #4 (permalink)
ryanmr
The Contributor
 
ryanmr's Avatar
 
Join Date: Jun 2008
Location: Twin Cities, Minnesota, USA
Posts: 44
Thanks: 3
ryanmr is on a distinguished road
Default

So something better might be something like this.

PHP Code:
$data 'my very secret password';
$salt 'QX;2t9`l}O^fE71AVueo5NLW7;fCI5[])=v/8Ju+?HEsxMqbtgeK@L7eVb[DH|]|'// from wordpress, http://api.wordpress.org/secret-key/1.1/
$str $salt $data;
$hash hash('sha256'$str); 
Which returns this masterpiece, 1c5759b53c6b6c017f548087774cf9ab69da7dd77609cd5606 512e0cab6b52eb. Yours would return, with the same data and hash, 6e6455d40c33712.
__________________
blog twitter ifupdown
ryanmr is offline  
Reply With Quote