Code Duplication    Length = 4-4 lines in 2 locations

core/EE_Encryption.core.php 2 locations

@@ 396-399 (lines=4) @@
393
            str_pad('', strlen($encrypted_text), $this->get_encryption_key(), STR_PAD_RIGHT)
394
        );
395
        $string_bits = str_split($encrypted_text);
396
        foreach ($string_bits as $k => $v) {
397
            $temp = ord($v) - ord($key_bits[$k]);
398
            $string_bits[$k] = chr($temp < 0 ? ($temp + 256) : $temp);
399
        }
400
        return implode('', $string_bits);
401
    }
402
@@ 359-362 (lines=4) @@
356
            str_pad('', strlen($text_string), $this->get_encryption_key(), STR_PAD_RIGHT)
357
        );
358
        $string_bits = str_split($text_string);
359
        foreach ($string_bits as $k => $v) {
360
            $temp = ord($v) + ord($key_bits[$k]);
361
            $string_bits[$k] = chr($temp > 255 ? ($temp - 256) : $temp);
362
        }
363
        $encrypted_text = implode('', $string_bits);
364
        $encrypted_text .= EE_Encryption::ACME_ENCRYPTION_FLAG;
365
        return $this->_use_base64_encode