-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add valid until function which returns a number that will guaranteed work until the expiration date #1
Comments
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
<#1 (comment)>, 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 The windows supported version of 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(...) |
[https://github.com/pyauth/pyotp/pull/5]
Awesome idea to add
The text was updated successfully, but these errors were encountered: