equal
deleted
inserted
replaced
171 # chances and we also do not want to waste an additional byte |
171 # chances and we also do not want to waste an additional byte |
172 # of entropy. |
172 # of entropy. |
173 $itoa64 = './ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; |
173 $itoa64 = './ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; |
174 |
174 |
175 $output = '$2a$'; |
175 $output = '$2a$'; |
176 $output .= chr(ord('0') + $this->iteration_count_log2 / 10); |
176 $output .= chr((int)(ord('0') + $this->iteration_count_log2 / 10)); |
177 $output .= chr(ord('0') + $this->iteration_count_log2 % 10); |
177 $output .= chr((ord('0') + $this->iteration_count_log2 % 10)); |
178 $output .= '$'; |
178 $output .= '$'; |
179 |
179 |
180 $i = 0; |
180 $i = 0; |
181 do { |
181 do { |
182 $c1 = ord($input[$i++]); |
182 $c1 = ord($input[$i++]); |