章节摘要FIDO2是一项由FIDO联盟与W3C合作开发和指定的技术,它通过证明拥有的私钥(称为Passkey)提供了返回的用户身份验证,并为依赖方提供了可选的加密认证,即Passkey存储在认证的地位中,该认证者已通过销售和/或使用pin和/或a Biote来证明了pinefientificatientifation。Passkeys可以存储在安全密钥,操作系统中的平台身份验证器,在手机中漫游身份验证器以及密码管理器或Web浏览器。可以在密码管理器之间轻松传输密码,但不能导出Passkeys。为了解决用户可以锁定到特定浏览器或密码管理器的危险,FIDO联盟启动了凭证交换协议的规范,该规范将使Passkeys可以在密码管理器之间安全地转移。10.1 FIDO联盟Fido Alliance [1]是一个开放的行业协会,该协会于2013年启动,一直在促进使用密钥对返回用户身份验证的用户名和密码的替换。为此,联盟指定了加密身份验证协议,称为FIDO协议,并提供了认证服务。Basic authentication to a website with a key pair can be trivially implemented using the Web Storage API and either the Web Crypto API or any of several JavaScript cryptographic libraries: when the user creates an account, the frontend of the site on the user's browser generates a key pair, stores the private key in localStorage, and registers the public key with the backend;然后,当用户返回站点时,前端签署了后端的挑战,并将签名提交到后端。