@@ 503-506 (lines=4) @@ | ||
500 | ) |
|
501 | ); |
|
502 | $string_bits = str_split($text_string); |
|
503 | foreach ($string_bits as $k => $v) { |
|
504 | $temp = ord($v) + ord($key_bits[$k]); |
|
505 | $string_bits[$k] = chr($temp > 255 ? ($temp - 256) : $temp); |
|
506 | } |
|
507 | $encrypted_text = implode('', $string_bits); |
|
508 | $encrypted_text .= EE_Encryption::ACME_ENCRYPTION_FLAG; |
|
509 | return $this->_use_base64_encode |
|
@@ 550-553 (lines=4) @@ | ||
547 | ) |
|
548 | ); |
|
549 | $string_bits = str_split($encrypted_text); |
|
550 | foreach ($string_bits as $k => $v) { |
|
551 | $temp = ord($v) - ord($key_bits[$k]); |
|
552 | $string_bits[$k] = chr($temp < 0 ? ($temp + 256) : $temp); |
|
553 | } |
|
554 | return implode('', $string_bits); |
|
555 | } |
|
556 |