Add valid until function which returns a number that will guaranteed work until the expiration date
[https://github.com/pyotp/pyotp/pull/5] Awesome idea to add
Hi tilkinsc,
Your function totp.valid_until() does not work for me, on both lua 5.1 and lua 5.3, it failes with the ((self.interval + 1) code.
Any ideas?
Thanks
Hi, as you can see I haven't updated LuaOTP in a long time. I need to catch it up to speed with the https://github.com/tilkinsc/COTP library.
If you can do that would be very welcome, but I also know it's you time. But thank you for getting back to me.
Best regards
Tom
On Wed, 4 Sept 2024, 03:07 Cody Tilkins, @.***> wrote:
Hi, as you can see I haven't updated LuaOTP in a long time. I need to catch it up to speed with the https://github.com/tilkinsc/COTP library.
— Reply to this email directly, view it on GitHub https://github.com/tilkinsc/LuaOTP/issues/1#issuecomment-2327766646, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASQGDFPBEZENGHF5EWXAMMTZUZTMLAVCNFSM6AAAAABNSTF4ZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRXG43DMNRUGY . You are receiving this because you commented.Message ID: @.***>
I pretty much scrapped all the code I had and writing anew. It seems like I can't find a sha1 library that isn't dogwater. If you can find one that I can just yeehaw and it outputs correct results compared to openssl in C with a permissive license, then I will be willing to finish it up.
Have you looked at http://25thandclement.com/~william/projects/luaossl.html it supports SHA1
The Git project https://github.com/wahern/luaossl
The windows supported version of luaossl https://github.com/daurnimator/luaossl
This involves distributing openssl and/or a dll, which their repository actually infringes openssl's license I think. I have 0 interest in integrating with LuaRocks, as this is supposed to be a stand alone single file sort of deal despite what it is/was originally (You just have to git clone and require). Yet, its expected of you to provide your own functionality for time and crypto. I just can't find anything to rightfully test the library. Nonetheless to learn this lib that should just have something like sha1.hmac(...)