mod_auth_joomla: Joomla hash should be hex-encoded, not raw binary (thanks Anthony).

Sat, 23 Jun 2012 00:42:01 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Sat, 23 Jun 2012 00:42:01 +0500
changeset 719
5e71e24e33fc
parent 718
a37e4149ccd1
child 720
97f6d7c4aaed

mod_auth_joomla: Joomla hash should be hex-encoded, not raw binary (thanks Anthony).

mod_auth_joomla/mod_auth_joomla.lua file | annotate | diff | comparison | revisions
--- a/mod_auth_joomla/mod_auth_joomla.lua	Wed Jun 20 16:08:47 2012 +0200
+++ b/mod_auth_joomla/mod_auth_joomla.lua	Sat Jun 23 00:42:01 2012 +0500
@@ -89,7 +89,8 @@
 
 
 local function getCryptedPassword(plaintext, salt)
-	return md5(plaintext..salt);
+	local salted = plaintext..salt;
+	return md5(salted, true);
 end
 local function joomlaCheckHash(password, hash)
 	local crypt, salt = hash:match("^([^:]*):(.*)$");

mercurial