Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.1.0.0
- * @ Author : DeZender
- * @ Release on : 15.05.2020
- * @ Official site : http://DeZender.Net
- *
- */
- class MyCripty
- {
- public $chave = 4875;
- public $add_text = 'A vida e um caos aleatorio ordenada pelo tempo';
- public function enc($word)
- {
- $word .= $this->add_text;
- $s = strlen($word) + 1;
- $nw = '';
- $n = $this->chave;
- for ($x = 1; $x < $s; $x++) {
- $m = $x * $n;
- if ($s < $m) {
- $nindex = $m % $s;
- }
- else if ($m < $s) {
- $nindex = $m;
- }
- if (($m % $s) == 0) {
- $nindex = $x;
- }
- $nw = $nw . $word[$nindex - 1];
- }
- return $nw;
- }
- public function dec($word)
- {
- $s = strlen($word) + 1;
- $nw = '';
- $n = $this->chave;
- for ($y = 1; $y < $s; $y++) {
- $m = $y * $n;
- if (($m % $s) == 1) {
- $n = $y;
- break;
- }
- }
- for ($x = 1; $x < $s; $x++) {
- $m = $x * $n;
- if ($s < $m) {
- $nindex = $m % $s;
- }
- else if ($m < $s) {
- $nindex = $m;
- }
- if (($m % $s) == 0) {
- $nindex = $x;
- }
- $nw = $nw . $word[$nindex - 1];
- }
- $t = strlen($nw) - strlen($this->add_text);
- return substr($nw, 0, $t);
- }
- }
- function diffDate($d1, $d2, $sep = '-')
- {
- $d1 = explode($sep, $d1);
- ...........................................................
- ..................................
- ...........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement