代码之家  ›  专栏  ›  技术社区  ›  dF.

Windows相当于OSX钥匙链?

  •  49
  • dF.  · 技术社区  · 17 年前

    在Windows中是否有类似于OSX的钥匙链,用于存储用户密码?我会用它为我的(桌面)软件使用的web服务保存用户密码。

    Protecting user passwords in desktop applications (Rev 2) )和 multitude of third party password storage tools 如果可用,我假设这样的事情不存在——我是不是每次访问web服务时都要询问密码,还是只是将其模糊存储?

    5 回复  |  直到 9 年前
        1
  •  26
  •   Mikser    7 年前

    2018年,Windows 10有一个“凭证管理器”,可以在“控制面板”中找到

        2
  •  19
  •   Josh Kelley    13 年前

    Protected Storage PassView

    Windows还提供了CryptoAPI和数据保护API,这可能会有所帮助。不过,我也不认为Windows会阻止在同一帐户下运行的进程看到彼此的密码。

    Mechanics of User Identification and Authentication 提供有关所有这些的更多详细信息。

    日蚀(通过its) Secure Storage 功能)实现类似的功能,如果您有兴趣了解其他软件是如何实现的。

        3
  •  18
  •   jordanbtucker    11 年前

    看见 How to store user credentials

    Windows 8之前的版本, Data Protection API (DPAPI)与钥匙链最接近。可以使用此API对任意数据进行加密,尽管存储加密数据由开发人员决定。数据最终使用当前用户的密码进行加密,但是可以包括用户或开发人员提供的“可选熵”,以进一步保护数据不受其他软件或用户的影响。数据也可以在域中的不同计算机上解密。

    CryptProtectData CryptUnprotectData 函数或通过.NET Framework的 ProtectedData 类,它是前一个函数的有限功能包装器。

    DPAPI Secrets. Security analysis and data recovery in DPAPI .

        4
  •  14
  •   jww avp    7 年前

    实际上,通过MSDN查看,他们建议使用的功能(而不是受保护的存储)有:

    • CryptProtectData
    • CryptUnprotectData

    链接 CryptProtectData function .

        5
  •  5
  •   Mohit    6 年前

    Credential Manager 在窗户里。

        6
  •  2
  •   itsuupport.com    5 年前

        7
  •  1
  •   abhinav kumar    5 年前

    如果你在windows上,你必须 控制面板->windows凭据

        8
  •  0
  •   Gabriel    5 年前

    Credential dumping 在Windows上,即使使用“凭据管理器”仍然是一个问题,我不认为有任何方法可以在特殊硬件之外阻止它。MacOS钥匙链没有这个问题,所以我认为没有完全相同的问题。