News for hackers. Stuff that matters.
Re:Tiny Toy TOTP Generator in 18 Lines of Python by userbinator on Sunday August 11, 2019 @04:35PM (#20670309)
Only 132KB to load to memory

It's amusing to see people think 100KB+ is small, when the whole TOTP algorithm, including SHA1 (probably the biggest part), and the input/output conversion, likely needs only a few KB of code. With the exception of SHA1, everything else is doable in dozens of bytes.

Re:Tiny Toy TOTP Generator in 18 Lines of Python by icebraining on Sunday August 11, 2019 @08:24PM (#20671443)
True, but I'm just talking about the sizes of the binaries generated by the default settings of common compilers (gcc, in the case of oathtool), for comparing orders of magnitude. I'm sure there's plenty of fat you could trim by simply tuning the compilation a bit.

(Oathtool also supports SHA2, since it may be used by other implementations, per the RFC. )