Skip to content

Commit

Permalink
thoughts: 2024-06-29
Browse files Browse the repository at this point in the history
  • Loading branch information
zou8944 committed Jun 29, 2024
1 parent a5ae832 commit 246ec00
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions thoughts/202406
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## 2024-06-29

Google Authenticator 背后的技术其实非常简单:HOTP 或 TOTP,如果要自己实现一个服务端,只需要做两件事

- 去网上找一个 otp 的实现库,比如这个: https://github.com/pquerna/otp
- 按照 Google Authenticator 的协商格式生成一个 uri 的二维码:https://github.com/google/google-authenticator/wiki/Key-Uri-Format

0 comments on commit 246ec00

Please sign in to comment.