Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Scanning QR codes with SHA-512 (or SHA-256) generates wrong codes unless added manually

未关闭
#1,593 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
65/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript

调研方向

Start by tracing the QR scan/import process and compare how it handles the algorithm parameter with the Manual Entry flow, where SHA-512 is saved correctly. Verify the behavior with QR codes using SHA-512 and SHA-256; done means scanned accounts preserve the encoded algorithm and generate codes matching the actual token.

由索引模型根据 Issue 内容生成。

描述

bug
Describe the issue

Hi,

I noticed an issue when scanning QR codes that use SHA-512 for two-factor authentication.

When I scan a QR code where the algorithm is set to SHA-512, the extension produces an incorrect code that does not match the actual token. However, if I enter the same account using "Manual Entry" and change the algorithm to SHA-512 in the advanced settings, it works completely fine and generates the correct code.

I also tested the exact same QR code on other authenticator apps like 2FAS and Aegis, and both of them scan and handle the SHA-512 algorithm out of the box without any problems.

It seems that during the QR scan/import process, the algorithm parameter is not being recognized properly and defaults back to SHA-1, while manual entry saves it correctly.

Could you please look into this so that scanned QR codes with SHA-512 (and other algorithms like SHA-256) are automatically detected and saved with the right algorithm?

Thank you!

Browser

Chrome

Browser Version

153.0.8010.53

Extension Version

8.0.1

主要语言
TypeScript
星标
4.7k
派生
1.2k
PR 合并指标
30 天内没有已合并 PR

环境准备

我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Authenticator-Extension/Authenticator 的其他 Issue

查看 Authenticator-Extension/Authenticator 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。