equal
deleted
inserted
replaced
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 |