Php source code encryption is modeled after the micro-shield PHP encryption expert (PHPCodeLock). For more information, see.
The code is as follows:
Function T_rndstr ($ length = "") {// returns a random string.
$ Str = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ";
If ($ length = ""){
Return str_shuffle ($ str );
} Else {
Return substr (str_shuffle ($ str),-$ length );
}
}
$ T_k1 = T_rndstr (); // random key 1
$ T_k2 = T_rndstr (); // random key 2
$ Vstr = file_get_contents ("xk/index. php"); // file to be encrypted
$ V1 = base64_encode ($ vstr );
$ C = strtr ($ v1, $ T_k1, $ T_k2); // replace the corresponding character with the key.
$ C = $ T_k1. $ T_k2. $ c;
$ Q = T_rndstr ();
$ Isqs = 1; // 1 take the random string as the variable name 2 capital O and the number 0 to form the basic variable
If ($ isqs = "1 "){
$ Q1 = substr ($ q, 2, 3 );
$ Q2 = substr ($ q, 10, 10 );
$ Q3 = substr ($ q, 20, 12 );
$ Q4 = substr ($ q, 30, 10 );
$ Q5 = substr ($ q, 40, 8 );
$ Q6 = substr ($ q, 5, 5 );
} Else {
$ Q1 = "O00O0O ";
$ Q2 = "O0O000 ";
$ Q3 = "O0OO00 ";
$ Q4 = "OO0O00 ";
$ Q5 = "OO0000 ";
$ Q6 = "O00OO0 ";
}
$ Keystr = urldecode ("% 6E1% 7A % 62% 2F % 6D % 615% 5C % 76% 740% 2D % 6928% 70% 78% 75% 2A6% 6C % 71% 6B % 79% 72% 5F % 65% 68% 63% 73% 77% 6F4% 2B % 6637% 6A ");
/* Full string
N1zb/ma5 \ vt0i28-pxuqy * 6lrkdg9_ehcswo4 + f37j
Base64_decode // $ q1
Strtr // $ q2
Substr
*/
$ S = '$ '. $ q6. '= urldecode ("% 6E1% 7A % 62% 2F % 6D % 615% 5C % 76% 740% 6928% 2D % 70% 78% 75% 71% 2A6% 6C % 79% 6B % 72% 5F % 65% 68% 63% 73% 77% 6F4% 2B % 6637% 6A "); $ '. $ q1. '= $ '. $ q6. '{3 }. $ '. $ q6. '{6 }. $ '. $ q6. '{33 }. $ '. $ q6. '{30}; $ '. $ q3. '= $ '. $ q6. '{33 }. $ '. $ q6. '{10 }. $ '. $ q6. '{24 }. $ '. $ q6. '{10 }. $ '. $ q6. '{24}; $ '. $ q4. '= $ '. $ q3. '{0 }. $ '. $ q6. '{18 }. $ '. $ q6. '{3 }. $ '. $ q3. '{0 }. $ '. $ q3. '{1 }. $ '. $ q6. '{24}; $ '. $ q5. '= $ '. $ q6. '{7 }. $ '. $ q6. '{13}; $ '. $ q1 .'. = $ '. $ q6 .' {22 }. $ '. $ q6. '{36 }. $ '. $ q6. '{29 }. $ '. $ q6. '{26 }. $ '. $ q6. '{30 }. $ '. $ q6. '{32 }. $ '. $ q6. '{35 }. $ '. $ q6. '{26 }. $ '. $ q6. '{30}; eval ($ '. $ q1 .'("'. base64_encode ('$ '. $ q2. '= "'. $ c. '"; eval (\'?> \'. $ '. $ Q1. '($ '. $ q3. '($ '. $ q4. '($ '. $ q2. ', $ '. $ q5. '* 2), $ '. $ q4. '($ '. $ q2. ', $ '. $ q5. ', $ '. $ q5. '), $ '. $ q4. '($ '. $ q2. ', 0, $ '. $ q5 .'))));'). '"));';
PHP encryption expert (PHPCodeLock)