Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
lua
08-06-2013, 08:07 PM (This post was last modified: 08-06-2013 09:15 PM by TrioxX.)
Post: #4
RE: lua
@Cyko

I was thinking about converting it to PHP.

@Macro

Which one? The attached one? Both codes are untouched Big Grin I took it from a World of Warcraft Addon. So... If anyone has an idea how to decode that stuff, i can also post the whole addon here.

EDIT:

Tried to port to PHP, but i guess i failed:

PHP Code:
function dec($t) {
    
$textd '';
    
$data 0;
    
$k 3;
    
    for (
$j=1$j<strlen($t); $j++) { //???
        
$c substr($t$j$j);
        
$cb chr($c{1});
        
$chard '';
        
        if (
$cb < (128 $k)) {
            
$chard ord($cb $k);
        } else if (
$db 192) {
            
$joined = (63 $cb) | $data;
            
$joined += $k;
            
$upper2 = ((192 $joined) >> 6) | 192;
            
$lower2 = (63 $joined) | 128;
            
$chard ord($upper2) . ord($lower2);
        } else if (
$cb 224 && $cb 193) {
            
$data = ($cb) << 6;
        } else {
            die(
'Range Err');
        }
        
        
$textd .= $chard;
    }
    
    return 
$textd;


Whatever i try to decode, this is the result:

Code:
515151515151515151515151515151515151515151515151515151515151515.....
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
lua - TrioxX - 08-06-2013, 06:48 PM
RE: lua - Cyko - 08-06-2013, 07:23 PM
RE: lua - Macro2k13 - 08-06-2013, 07:41 PM
RE: lua - TrioxX - 08-06-2013 08:07 PM
RE: lua - Macro2k13 - 08-07-2013, 08:46 AM
RE: lua - TrioxX - 08-07-2013, 10:30 AM
RE: lua - Macro2k13 - 08-07-2013, 10:49 AM
RE: lua - steven123 - 10-28-2013, 08:03 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | Homepage | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication