PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/demo2024feb.kerihosting.com/wp-content/plugins/backupbuddy/lib/xorcrypt/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/demo2024feb.kerihosting.com/wp-content/plugins/backupbuddy/lib/xorcrypt/xorcrypt.php |
<?php class xorcrypt { private $password = NULL; public function set_key($password) { $this->password = $password; } private function get_rnd_iv($iv_len) { $iv = ''; while ($iv_len-- > 0) { $iv .= chr(mt_rand() & 0xff); } return $iv; } public function encrypt($plain_text, $iv_len = 16) { $plain_text .= "\x13"; $n = strlen($plain_text); if ($n % 16) { $plain_text .= str_repeat("\0", 16 - ($n % 16)); $i = 0; $enc_text = $this->get_rnd_iv($iv_len); $iv = substr($this->password ^ $enc_text, 0, 512); while ($i < $n) { $block = substr($plain_text, $i, 16) ^ pack('H*', sha1($iv)); $enc_text .= $block; $iv = substr($block . $iv, 0, 512) ^ $this->password; $i += 16; } return base64_encode($enc_text); } else {} } public function decrypt($enc_text, $iv_len = 16) { $enc_text = base64_decode($enc_text); $n = strlen($enc_text); $i = $iv_len; $plain_text = ''; $iv = substr($this->password ^ substr($enc_text, 0, $iv_len), 0, 512); while ($i < $n) { $block = substr($enc_text, $i, 16); $plain_text .= $block ^ pack('H*', sha1($iv)); $iv = substr($block . $iv, 0, 512) ^ $this->password; $i += 16; } return stripslashes(preg_replace('/\\x13\\x00*$/', '', $plain_text)); } } /* Example: $xorCrypt = new xorcrypt(); $xorCrypt->set_key("Your Secret Key"); $text = "hello world!"; $encrypted = $xorCrypt->encrypt($text); echo $encrypted; echo "<br />"; echo $xorCrypt->decrypt($encrypted); */ ?>