TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

PeerAuth, TOTP-based peer authentication in the post-truth world

19 点作者 k_sze3 个月前

7 条评论

artemgr3 个月前
Great project - especially how it leverages what we already have!<p>And actually, perhaps PKI is not that good for this case all together. Instead we could extend the original idea with simple primitives like an infinite hash chain (<a href="https:&#x2F;&#x2F;ieeexplore.ieee.org&#x2F;document&#x2F;7509492" rel="nofollow">https:&#x2F;&#x2F;ieeexplore.ieee.org&#x2F;document&#x2F;7509492</a>). In this scheme, during every authentication round, a user reveals a pre-committed secret and simultaneously commits to a new one for the next interaction. This approach is already used on websites where authentication tokens are exchanged based on known hashes, and there are proven methods to keep these tokens continuously updated. It relies solely on hashes — just like your scheme — and can work by having both parties scan each other’s QR codes on every interaction, which both performs an authentication check and also updates the application’s state each round.<p>The beauty of this method compared to PKI is first, it is based on a weaker assumption, but more importantly is that even if an attacker intercepts the initial QR code, they cannot afford to miss any message exchange, or they’ll lose the ability to authenticate. Moreover, if an attacker ever impersonates a party by following the protocol, the genuine authentication sequence will break down, revealing a discrepancy that exposes the impersonation.<p>And it should not be too hard to build, so I might give it a try.
评论 #43086390 未加载
k_sze3 个月前
This is a little stupid project that I created after seeing what AI can do nowadays.<p>In an &quot;ideal&quot; world:<p>- everybody should start using public&#x2F;private key cryptography to authenticate each other, but that&#x27;s still rather unwieldy nowadays. I&#x27;m not aware of any solution with a good UX;<p>- people would stop posting their photos&#x2F;videos&#x2F;audio recordings on the web, and also scrub anything that have been uploaded in the past.<p>We don&#x27;t live in an &quot;ideal&quot; world, and TOTP is pretty widespread now, and you can easily read the TOTP code over the phone, etc. So this solution was born.
评论 #42943808 未加载
grempe3 个月前
Isn&#x27;t the authentication unidirectional? Alice can confirm its Bob, or Bob can confirm its Alice, but they can&#x27;t both be sure they are talking to the real person.<p>&quot;Malice&quot; could ask Bob for his code, and lie about it matching (or maybe Malice has no code at all and is pretending to match), lulling Bob into thinking that authentication was successful based on taking Malice&#x27;s word for it.<p>Seems like you would need two codes for mutual authentication. One for Alice to Bob, and one for Bob to Alice.
评论 #43007667 未加载
sohkamyung3 个月前
Maybe a bug: I selected &quot;Generate&quot; and didn&#x27;t notice that the QR code had been generated as it was off-screen. So I re-selected &quot;Generate&quot; a few times before I realised what was happening. Only, now I have two long columns of QR codes.<p>This was on Firefox Nightly on Windows 11.
评论 #43006449 未加载
anshnd3 个月前
Display the QR code once. Each user can change the label on their own.
评论 #43006467 未加载
hhshs3 个月前
I cannot scan qrcode on computer. I need a secret key to use it with my password manager(TOTP).
评论 #43023138 未加载
hhshs3 个月前
Qrcodes are not visible on Tor Browser.
评论 #43023133 未加载