comparison mod_auth_wordpress/mod_auth_wordpress.lua @ 425:34eb9df9e37f

mod_auth_wordpress: Fix hash identifier.
author Kim Alvefur <zash@zash.se>
date Sun, 11 Sep 2011 22:05:13 +0200
parents 22935ef37284
children 6f2e37d0a1b0
comparison
equal deleted inserted replaced
424:22935ef37284 425:34eb9df9e37f
153 153
154 return output; 154 return output;
155 end 155 end
156 local function hashGensaltPrivate(input) 156 local function hashGensaltPrivate(input)
157 local iteration_count_log2 = 6; 157 local iteration_count_log2 = 6;
158 local output = "$H$"; 158 local output = "$P$";
159 local idx = math.min(iteration_count_log2 + 5, 30) + 1; 159 local idx = math.min(iteration_count_log2 + 5, 30) + 1;
160 output = output .. itoa64:sub(idx, idx); 160 output = output .. itoa64:sub(idx, idx);
161 output = output .. hashEncode64(input, 6); 161 output = output .. hashEncode64(input, 6);
162 return output; 162 return output;
163 end 163 end