设为首页 收藏本站
查看: 2530|回复: 0

[经验分享] 关于Cisco路由器口令加密的问题

[复制链接]

尚未签到

发表于 2018-7-14 12:00:41 | 显示全部楼层 |阅读模式
我今天在看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.
  --------------------------------------------------------------------------------------------------------

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-537077-1-1.html 上篇帖子: cisco 3560G-48ts-E 的SFP端口 下篇帖子: Cisco专题:路由器IOS升级方法总结
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表