Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for Zend Encoder/SafeGuard & PhpExpress)
- *
- * @ Version : 1.1.3.0
- * @ Author : DeZender
- * @ Release on : 17.05.2011
- * @ Official site : http://DeZender.Net
- *
- */
- class Scp {
- protected $mode = null;
- protected $type = null;
- protected $_matches = null;
- function __die() {
- return '7Nw90dGjz1Mcb81jaQT3yW6KRxAEpiS48nDzKs5qLXhtrsIPg123eCa2VkoBuZ';
- }
- function __construct() {
- mt_srand( (double)microtime( ) * 1000000 );
- srand( (double)microtime( ) * 1000000 );
- }
- function _stringSplit($_text, $_chunksize = 1) {
- preg_match_all( '/(' . str_repeat( '.', $_chunksize ) . ')/Uims', $_text, $_matches );
- return $_matches[1];
- }
- function encode($_text, $_IV = 5) {
- $_ENCRYPT_KEY = $this->__die( );
- if (is_numeric( $_IV )) {
- $_IV = intval( $_IV );
- if ($_IV < 1) {
- $_IV = 1;
- } else {
- if (500 < $_IV) {
- $_IV = 42;
- }
- }
- } else {
- $_IV = 3;
- }
- $_text .= ' ';
- $_arr1 = $this->_stringSplit( $_ENCRYPT_KEY );
- $_arr2 = $_arr1;
- foreach ($_arr1 as $_i1 => $_v1) {
- foreach ($_arr2 as $_i2 => $_v2) {
- $_counter = $_i2 + 1 + $_i1 * strlen( $_ENCRYPT_KEY );
- $_array[$_counter] = $_v1 . $_v2;
- if ($_v1 == $_v2) {
- $_array[$_counter] = $_v1 . '_';
- }
- }
- }
- $_encoded = '';
- $_count = 0;
- $_msgarr = $this->_stringSplit( $_text );
- foreach ($_msgarr as $_mindex => $_mvalue) {
- if ($_mindex / 2 != ceil( $_mindex / 2 )) {
- $_masc = ord( $_mvalue ) - 31;
- $_masc = $_masc + ( ceil( $_count * $_IV / 3 ) + $_IV );
- $_count++;
- if (12 < $_count) {
- $_count = 0;
- }
- $_encoded .= $_array[$_masc];
- } else {
- $_encoded .= str_rot13( $_mvalue );
- }
- }
- return $_encoded;
- }
- .................................................
- ..................................
- ............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement