如何将“Google Authenticator”代码设置为 4 位而不是 6 位?

问题描述

我可以使用 Google 身份验证器生成代码。但它默认生成一个 6 位代码。有什么办法可以设置成4位数?

我试过了,但没有得到我预期的结果。

var generatedCode = $"otpauth://totp/{host}:{email}?secret={secretKey}&issuer={host}&digits=4";

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)