Chrome 浏览器的密码保存为什么显示明文不需要验证主密码确认?这是安全问题吗?
24 个回答
一个研究过chrome的密码保存机制的人员来说一下吧:
chrome保存的密码,实际是通过windows 的一个函数进行加密并存入sqlite3数据库的,而这个数据库又是可以访问到的,至于他能显示明文密码,就是你点击明文的时候,他调用了响应的解密函数。具体过程请看这个 http:// securityxploded.com/chr omepassworddecryptor.php
从技术上来说,chrome加密的函数调用的是 CryptprotectData 这个函数,这个函数是windows提供的。msdn的描述 http:// msdn.microsoft.com/ZH-C N/library/windows/desktop/aa380261(v=vs.85) .aspx
The CryptProtectData function performs encryption on the data in a DATA_BLOB structure. Typically, only a user with the same logon credential as the user who encrypted the data can decrypt the data. In addition, the encryption and decryption usually must be done on the same computer. For information about exceptions, see Remarks.
也就是说,要解密这个函数,就必须以相同的用户登陆到系统,才能解密数据chrome使用这个函数的原因,猜测有如下几个方面
第一:chrome密码是以当前用户的计算机是安全的为前提,如果当前计算机不安全,那么密码的作用也就没有了。
第二:简单。这个函数是微软提供的。
第三:简单。