- public function
- dlcrypt
- ($s = null, $e = "dl01", $ok = true)
- {
- if (empty($s) || !$ok) return;
- $p = 0;
- for ($i = 0; $i < strlen($s); $i++) {
- $c = ord($s[$i]);
- switch ($e)
- {
- case "dl01":
- if($c < 128) $c = $c ^ 2;
- break;
- case "dl02":
- if($c < 128) $c = $c ^ (($p++ % 8) + 1);
- break;
- case "dl03":
- if($c < 128) $c = $c ^ (($p++ % 8) + 1 ^ 64);
- break;
- }
- $o = $o.chr($c);
- if(strlen($o) > 80)
- {
- $ar[$ic++] = $o;
- $o = null;
- }
- }
- if(isset($ar) && is_array($ar)) foreach($ar as $v) $o .= $v;
- return $o;
- }
Undefined
By: fruffl | Date: Dec 12 2009 23:13 | Format: None | Expires: never | Size: 996 B | Hits: 978
Latest pastes
1 hours ago
11 hours ago
1 days ago
2 days ago
2 days ago