2012-06-12 82 views

回答

1

這個Javascript功能可用於編碼的密碼:

function encodePassword(input) 
{ 
    var top = 0; 
    var output = ''; 

    for(var i = 0; i < input.length; i++){ 
     var currentChar = input.charCodeAt(i); 
     if(currentChar < 0 || currentChar > 0xFFFF){return(false);} 
     if(top != 0){ 
      if(0xDC00 <= currentChar && currentChar <= 0xDFFF){ 
       output += dec2hex(0x10000 + ((top - 0xD800) << 10) + (currentChar - 0xDC00) + i) + ''; 
       top = 0; 
       continue; 
       // Insert alert for below failure 
      }else{return(false);} 
     } 
     if(0xD800 <= currentChar && currentChar <= 0xDBFF){top = currentChar;} 
     else{output += dec2hex(currentChar + i) + '';} 
    } 

    return(output); 
} 

function dec2hex(input){return(input+0).toString(16).toUpperCase();} 

而且這個函數可以用於解碼密碼:

function decodePassword(input) 
{ 
    var output = ""; 

    if(input.length == 0){return("");} 

    for(var i = 0; i < input.length/2; i++){ 
     var currentHex = parseInt(input.substr(i * 2, 2), 16); 
      if(currentHex <= 0xFFFF){ 
       output += String.fromCharCode(currentHex - i); 
      }else if(currentHex <= 0x10FFFF){ 
       currentHex -= 0x10000 
       output += String.fromCharCode(0xD800 | (currentHex >> 10)) + String.fromCharCode(0xDC00 | (currentHex & 0x3FF) - i); 
      }else{ 
       //Insert alert for below failure 
       return(false); 
     } 
    } 

    return(output); 
} 

您也可以使用這樣做網上沒有任何代碼這個工具:http://blog.affirmix.com/2009/05/05/live-ste-dreamweaver-password-encoder-and-decoder/

1

爲了解碼您破解密碼進入對十六進制的Dreamweaver的密碼(0-9,AF)的數字,然後從減基於它的每個十六進制數字的位置在字符串中,從0開始,然後再轉換回ASCII。

5470714865787F的加密密碼,將...

54-0 = 54 => T 
70-1 = 6F => o 
71-2 = 6F => o 
48-3 = 45 => E 
65-4 = 61 => a 
78-5 = 73 => s 
7F-6 = 79 => y 

所以5470714865787F =>「TooEasy」

我們有這個在我們的網站工作的例子,讓您的解碼密碼。您也可以複製/粘貼整個.ste文件,它會輸出所需的FTP細節進行連接,節省一些時間......

http://www.mywebsitespot.com/dreamweaver-password-decode

0

對不起喚醒一個古老的線程,但想到我d發佈我的解決方案。這是一個單一的HTML5網頁,可以加載和分析Dreamweaver的STE文件,解碼密碼的一部分。我想簡單的東西,離線/本地(所以解碼時的細節不被傳輸),我可能只是在加載一個STE文件,它會給我所有的FTP細節:

博客文章: http://bobmckay.com/web/dreamweaver-password-ste-file-decoder

解碼器頁面: http://bobmckay.com/dreamweaver-password-decoder/

希望對某人有用!

鮑勃

0

喚醒一個古老的線程,但除了接受JavaScript的答案,我只是想離開兩個PHP函數有興趣的人:

,編碼密碼:

function dwste_encode($pw){ 
    $output = ''; 
    $split = str_split($pw); 
    foreach($split as $key => $value){ 
     $char = ord($value); 
     $char = ($char + $key); 
     $char = dechex($char); 
     $output .= strtoupper($char); 
    } 
    return $output; 
} 

爲了解碼密碼:

function dwste_decode($pw){ 
    $output = ''; 
    $split = str_split($pw, 2); 
    foreach($split as $key => $value){ 
     $char = hexdec($value); 
     $char = ($char - $key); 
     $char = chr($char); 
     $output .= $char; 
    } 
    return $output; 
}