Skip to content

Added HOTP to slot programming#152

Merged
virot merged 2 commits intomasterfrom
HOTP
May 25, 2025
Merged

Added HOTP to slot programming#152
virot merged 2 commits intomasterfrom
HOTP

Conversation

@JMarkstrom
Copy link
Copy Markdown
Collaborator

Extended SetYubiKeyOTP.cs to handle HOTP on slot 1 and 2

Program an HOTP secret on short press or long press slot with either a randomized key or an external key in either byte or Base32 format. Return programmed key as both format for cross-reference or population of seed file.

Added Base32 helper class for OATH secrets input and output.

Converts secret key from byte to Base32 and Base32 to byte format. This is in order to better support using a 3rd party AAA server for OTP validation.

Test cases

Secret (Base32): QRFJ7DTIVASL3PNYXWFIQAQN5RKUJD4U

HOTPs (10 first):

Counter HOTP Code
0 984694
1 925675
2 214232
3 317736
4 124869
5 048798
6 637317
7 988135
8 382233
9 653804

JMarkstrom and others added 2 commits May 25, 2025 12:39
Added Base32 helper class for OATH secrets input and output.
Basic Pester
Update documentation
@virot virot merged commit 2ff0fa3 into master May 25, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants