關於Cisco路由器口令加密的問題

我今天在看CCIE Security Exam Guide (英文版)的時候,遇到一個關於Cisco路由器口令加密的困惑。
          文章中說路由器上的 secret password 是使用Cisco私有算法加密的。如果使用 service password-encryption命令將加密所有口令。並且給了兩個configure的片斷。如下:
沒有使用service password-encryption命令的配置
R1#show running-config
Building configuration
Current configuration:
!
version 12.2!
hostname R1
!
enable secret 5 $1$Aiy2$GGSCYdG57PdRiNg/.D.XI.
enable password cisco
使用service password-encryption命令的配置
R1#show running-config
Building configuration...
Current configuration:
!
service password-encryption
version 11.2
hostname R1
!
enable secret 5 $1$Aiy2$GGSCYdG57PdRiNg/.D.XI.
enable password 7 0822455D0A16
         並且在後面還有一個注意說明:
加密口令前面的數字 5 表示該口令使用MD5算法加密;數字 7 表示使用的是一種比較弱的算法。
          這下我就搞不明白了。有兩方面的問題:
1、在使用 service password-encryption命令後,是不是所有的口令都是用MD5算法加密?如果是,那爲什麼說enable password使用的是比較弱的口令?它使用的不是MD5算法嗎? 如果是,那MD5弱嗎?(據我所知很強。而且MD5不是Cisco私有的。)
2、既然secret password 使用Cisco私有的加密算法,那在使用service password-encryption命令後爲什麼輸出加密後的字符是一樣的,都是$1$Aiy2$GGSCYdG57PdRiNg/.D.XI. 算法之間存在優先級嗎(Cisco私有算法優先於MD5)?
可能是我英語不好,或是硬件平臺、IOS版本不同,還是……     在此,請各位不吝賜教!
以下是英文原文,給大家參考:
Example 4-27 shows that the secret password is encrypted (using Cisco’s proprietary algorithm),while the enable password is readable. This setup enables you to hide secret passwords when the configuration is viewed. If you want, you can also encrypt the enable password by issuing the service password-encryption command, as displayed in Example 4-28. Cisco uses the MD5 algorithm to hash the secret password. You cannot reverse engineer the hashed password (for example, $1$Aiy2$GGSCYdG57PdRiNg/.D.XI.).
The service password-encryption command encrypts all passwords issued to the router using
the MD5 encryption algorithm. Example 4-29 shows an example of how these passwords
appear when the configuration is viewed after all passwords have been encrypted.
Example 4-29 displays the show running-config command output after encrypting all passwords.
NOTE Note the digits, 5 and 7, before the encrypted passwords. The number 5 signifies that MD5 Hash algorithm is used for encryption, whereas the number 7 signifies a weaker algorithm.
--------------------------------------------------------------------------------------------------------

 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章