Code Duplication    Length = 4-4 lines in 2 locations

core/EE_Encryption.core.php 2 locations

@@ 269-272 (lines=4) @@
266
		}
267
		$key_bits = str_split ( str_pad ( '', strlen( $text_string ), $this->get_encryption_key(), STR_PAD_RIGHT ));
268
		$string_bits = str_split( $text_string );
269
		foreach ( $string_bits as $k =>$v ) {
270
			$temp = ord( $v ) + ord ( $key_bits[$k] );
271
			$string_bits[$k] = chr ( $temp > 255 ? ( $temp - 256 ) : $temp );
272
		}
273
        return function_exists('base64_encode') ? base64_encode( implode( '', $string_bits ) ) : implode('', $string_bits);
274
	}
275
@@ 294-297 (lines=4) @@
291
        $encrypted_text = $this->valid_base_64($encrypted_text) ? base64_decode($encrypted_text) : $encrypted_text;
292
		$key_bits = str_split ( str_pad ( '', strlen ( $encrypted_text ), $this->get_encryption_key(), STR_PAD_RIGHT ));
293
		$string_bits = str_split ( $encrypted_text );
294
		foreach ( $string_bits as $k => $v ) {
295
			$temp = ord ( $v ) - ord ( $key_bits[$k] );
296
			$string_bits[$k] = chr ( $temp < 0 ? ( $temp + 256 ) : $temp );
297
		}
298
        return implode( '', $string_bits );
299
	}
300