[GH-ISSUE #25] Scratch codes #13

Open
opened 2026-02-25 22:30:45 +03:00 by kerem · 3 comments
Owner

Originally created by @ohmer1 on GitHub (Jan 26, 2018).
Original GitHub issue: https://github.com/evgeny-gridasov/openvpn-otp/issues/25

Hello,

Is there a way to support scratch codes generated by google authenticator?

Originally created by @ohmer1 on GitHub (Jan 26, 2018). Original GitHub issue: https://github.com/evgeny-gridasov/openvpn-otp/issues/25 Hello, Is there a way to support scratch codes generated by google authenticator?
Author
Owner

@calve commented on GitHub (Jan 31, 2018):

AFAIU crash code are pregenerated HOTP. Those are supported by openvpn-otp.

<!-- gh-comment-id:361929273 --> @calve commented on GitHub (Jan 31, 2018): AFAIU crash code are pregenerated HOTP. Those are supported by openvpn-otp.
Author
Owner

@ohmer1 commented on GitHub (Jan 31, 2018):

I tried the generated codes but they are not working. I don't know if this is related, but the generated scratch codes have 8 digits but normal codes have only 6.

I use Google Authenticator to generate OTP keys:
google-authenticator --time-based --disallow-reuse --force --rate-limit=3 --rate-time=30 --window-size=17 --label=${USER}@sdomain.tld --secret=/root/ovpn2fa_secret

<!-- gh-comment-id:362025088 --> @ohmer1 commented on GitHub (Jan 31, 2018): I tried the generated codes but they are not working. I don't know if this is related, but the generated scratch codes have 8 digits but normal codes have only 6. I use Google Authenticator to generate OTP keys: `google-authenticator --time-based --disallow-reuse --force --rate-limit=3 --rate-time=30 --window-size=17 --label=${USER}@sdomain.tld --secret=/root/ovpn2fa_secret`
Author
Owner

@calve commented on GitHub (Apr 20, 2018):

Looks like you can configure the lenght of codes with the totp_digits param (see readme) but it might apply to both HOTP and TOTP https://github.com/evgeny-gridasov/openvpn-otp/blob/master/src/otp.c#L619

<!-- gh-comment-id:383060028 --> @calve commented on GitHub (Apr 20, 2018): Looks like you can configure the lenght of codes with the `totp_digits` param (see readme) but it might apply to both HOTP and TOTP https://github.com/evgeny-gridasov/openvpn-otp/blob/master/src/otp.c#L619
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/openvpn-otp#13
No description provided.