qdwang
V2EX  ›  问与答

关于 2FA 码的一个小问题

  •  
  •   qdwang · Oct 18, 2024 · 1325 views
    This topic created in 604 days ago, the information mentioned may be changed or developed.

    有个网站会用 2FA 验证,通常会同时给出二维码和一串恢复码。

    我想问的是,如果我把这个二维码图片妥善保存,那就不需要保存恢复码了,对吗?

    crab
        1
    crab  
       Oct 18, 2024
    是的。那图片也是个 key ,经过算法再生成一次性验证码。
    qdwang
        2
    qdwang  
    OP
       Oct 18, 2024
    @crab 十分感谢
    YGHMXFAL
        3
    YGHMXFAL  
       Oct 18, 2024 via Android
    你如果解码那个二维码,就会看到里面唯一有用地参数是[secret],因为其它所有参数都在标准中写死了(当然注意不要使用在线解码网站)

    保留这个[secret],就相当于备份了这个 2FA 实例,可以在 keepass/aegis 等等开源离线程序中添加这个[secret],就相当于迁移了该 2FA 实例
    qdwang
        4
    qdwang  
    OP
       Oct 19, 2024
    @YGHMXFAL 谢谢,您解释的十分详细,明白里面的原理了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3258 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 287ms · UTC 12:13 · PVG 20:13 · LAX 05:13 · JFK 08:13
    ♥ Do have faith in what you're doing.