Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Cryptage
- {
- public function decode($arg1)
- {
- $version = 1;
- $cle = "t4G3a9M0Zw7";
- $loc1 = substr($cle, 0, 1);
- $loc2 = 0;
- $loc3 = strlen($arg1);
- $loc4 = "";
- $loc5 = "";
- $loc8 = 0;
- while ($loc2 < $loc3)
- {
- $loc7 = substr($arg1, $loc2, 1);
- if ($loc7 != $loc1)
- {
- $loc8 = 1;
- while ($loc8 < strlen($cle))
- {
- $loc9 = substr($cle, $loc8, 1);
- if ($loc9 == $loc7)
- {
- if ($loc8 == 10)
- $loc8 = 0;
- $loc5 = $loc5 . $loc8;
- break;
- }
- $loc8++;
- }
- }
- else
- {
- $loc4 = $loc4 . chr($loc5);
- $loc5 = "";
- }
- $loc2++;
- }
- return $loc4;
- }
- }
- $crypt = new Cryptage();
- $decoded = $crypt->decode("encoded_xml_data_here");
- file_put_contents("Decoded.xml", $decoded);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement