/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
Behind the 6-digit code: Building HOTP and TOTP from scratch
(blog.dogac.dev)
248 points
dogacel
| 1 comments |
11 Apr 25 13:06 UTC
|
HN request time: 0.882s
|
source
Show context
3eb7988a1663
◴[
15 Apr 25 01:57 UTC
]
No.
43688279
[source]
▶
>>43653322 (OP)
#
It is a bit terse, but there is a 20-line Python implementation which cleared up the ideas for me:
https://github.com/susam/mintotp
replies(4):
>>43688338
#
>>43688730
#
>>43689457
#
>>43689797
#
SkiFire13
◴[
15 Apr 25 06:04 UTC
]
No.
43689457
[source]
▶
>>43688279
#
Those `>Q` and `>L` just make it more confusing for me, they just feel like a different language in the language...
replies(2):
>>43689735
#
>>43690191
#
1.
woadwarrior01
◴[
15 Apr 25 08:07 UTC
]
No.
43690191
[source]
▶
>>43689457
#
They are well documented and essentially are a DSL with the Python struct module for specifying memory representations of packed structures.
https://docs.python.org/3/library/struct.html#format-charact...
ID:
GO
↑