Advertisement
Guest User

Untitled

a guest
Mar 26th, 2012
1,813
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for Zend Encoder/SafeGuard & PhpExpress)
  6. *
  7. * @ Version : 1.1.3.0
  8. * @ Author : DeZender
  9. * @ Release on : 17.05.2011
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. class Scp {
  15. protected $mode = null;
  16. protected $type = null;
  17. protected $_matches = null;
  18.  
  19. function __die() {
  20. return '7Nw90dGjz1Mcb81jaQT3yW6KRxAEpiS48nDzKs5qLXhtrsIPg123eCa2VkoBuZ';
  21. }
  22.  
  23. function __construct() {
  24. mt_srand( (double)microtime( ) * 1000000 );
  25. srand( (double)microtime( ) * 1000000 );
  26. }
  27.  
  28. function _stringSplit($_text, $_chunksize = 1) {
  29. preg_match_all( '/(' . str_repeat( '.', $_chunksize ) . ')/Uims', $_text, $_matches );
  30. return $_matches[1];
  31. }
  32.  
  33. function encode($_text, $_IV = 5) {
  34. $_ENCRYPT_KEY = $this->__die( );
  35.  
  36. if (is_numeric( $_IV )) {
  37. $_IV = intval( $_IV );
  38.  
  39. if ($_IV < 1) {
  40. $_IV = 1;
  41. } else {
  42. if (500 < $_IV) {
  43. $_IV = 42;
  44. }
  45. }
  46. } else {
  47. $_IV = 3;
  48. }
  49.  
  50. $_text .= ' ';
  51. $_arr1 = $this->_stringSplit( $_ENCRYPT_KEY );
  52. $_arr2 = $_arr1;
  53.  
  54. foreach ($_arr1 as $_i1 => $_v1) {
  55. foreach ($_arr2 as $_i2 => $_v2) {
  56. $_counter = $_i2 + 1 + $_i1 * strlen( $_ENCRYPT_KEY );
  57. $_array[$_counter] = $_v1 . $_v2;
  58.  
  59. if ($_v1 == $_v2) {
  60. $_array[$_counter] = $_v1 . '_';
  61. }
  62. }
  63. }
  64.  
  65. $_encoded = '';
  66. $_count = 0;
  67. $_msgarr = $this->_stringSplit( $_text );
  68.  
  69. foreach ($_msgarr as $_mindex => $_mvalue) {
  70. if ($_mindex / 2 != ceil( $_mindex / 2 )) {
  71. $_masc = ord( $_mvalue ) - 31;
  72. $_masc = $_masc + ( ceil( $_count * $_IV / 3 ) + $_IV );
  73. $_count++;
  74.  
  75. if (12 < $_count) {
  76. $_count = 0;
  77. }
  78.  
  79. $_encoded .= $_array[$_masc];
  80. } else {
  81. $_encoded .= str_rot13( $_mvalue );
  82. }
  83. }
  84.  
  85. return $_encoded;
  86. }
  87. .................................................
  88. ..................................
  89. ............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement