From f5bd65f52920de89978f98c4f03fa0613d24a661 Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Wed, 20 Feb 2008 17:53:09 +0000 Subject: [PATCH] the choice between 2 hashing algos was preventing maximum portability (if the target platform lacked the optional algorithm, while the install platform had it you couldn't login anymore): I've chosen salted md5, which is probably easier to find (well, I tested on 2 servers and they both lacked the other one: I was MAD): the salt is however very long, and once created you can edit it and reinstall again to make it even stronger --- fp-includes/core/core.wp-pluggable-funcs.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/fp-includes/core/core.wp-pluggable-funcs.php b/fp-includes/core/core.wp-pluggable-funcs.php index 2b32955..f10122c 100755 --- a/fp-includes/core/core.wp-pluggable-funcs.php +++ b/fp-includes/core/core.wp-pluggable-funcs.php @@ -354,12 +354,7 @@ endif; if ( !function_exists('wp_hash') ) : function wp_hash($data) { $salt = wp_salt(); - - if ( function_exists('hash_hmac') ) { - return hash_hmac('md5', $data, $salt); - } else { - return md5($data . $salt); - } + return md5($data . $salt); } endif;