Top
Best
New

Posted by dogacel 4/11/2025

Behind the 6-digit code: Building HOTP and TOTP from scratch(blog.dogac.dev)
250 points | 74 commentspage 3
calvinmorrison 4/15/2025|
here's my small totp generator i use written in perl

https://git.ceux.org/totp-perl.git/tree/totp.pl

coolThingsFirst 4/15/2025||
What is HMAC i still dont understand this part? Is it RSA encrytion?
dogacel 4/15/2025|
No, RSA is asymetric, where it has a public/private key pair.

HMAC is symetric, it only has a secret and it can be used to hash values one-way.

nikolayasdf123 4/15/2025||
yep, it is just couple lines of code and nice math behind it
lhayward450 4/15/2025|
[dead]