wp/wp-includes/class-phpass.php
changeset 21 48c4eec2b7e6
parent 18 be944660c56a
child 22 8c2e4d02f4ef
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
   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++]);