英文:
Can I create deterministic data with webauthn authentication
问题
我有一个与私钥一起工作的应用程序。此私钥以用户在服务器端确定的密码进行加密,以便不给用户带来任何困难。当用户想要使用私钥时,用户可以使用其密码解密它并再次使用它。在使用密码解密私钥后,我会检查是否泄露了任何有意义的数据。
您可以在此处查看流程图
我想在这里删除密码,并集成webauthn。然而,由于应用程序的代码库非常庞大,要在系统中进行更改非常困难。是否可以从身份验证响应中的值中使用确定性数据来代替密码?是否可能设计这种结构?
这是我想做的事情
我知道Webauthn不是一种新兴的存储数据的标准。但我想知道是否可以创建一种只能在身份验证时获得的确定性数据。
英文:
I have an application that works with a private key. This private key is kept encrypted with the password determined by the user on the server side in order not to cause any difficulties to the user. When the user wants to use the private key, user can decrypt it with their password and use it again. After the private key is decrypted with a password, I check if any meaningful data is revealed.
You can check process graph here
I want to remove the password here and integrate webauthn instead. However, it is very difficult to make changes in the system because the code base of the application is very large. Is there a deterministic data that I can use instead of the password here from the values that come with the authentication response? Would it be possible to design this structure?
Thats what I want to do
I know that Webauthn is not an emerging standard for storing a data. But I am wondering if I can create a deterministic data that cannot be obtained outside of authentication.
答案1
得分: 1
你可以在基于Chromium的最新版本浏览器中使用PRF扩展,并与支持CTAP2的安全密钥一起,从安全密钥断言中获取对称密钥。
英文:
You can use the PRF extension in recent versions of Chromium-based browsers, and with CTAP2-capable security keys, to get a symmetric key from a security key assertion.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论