Skip to content

add support for multiple TOTP keys - #84

Merged
tahnok merged 1 commit into
mainfrom
unknown repository
Sep 4, 2022
Merged

add support for multiple TOTP keys#84
tahnok merged 1 commit into
mainfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Aug 29, 2022

Copy link
Copy Markdown

seems to work fine on the simulator and hardware

@ghost

ghost commented Aug 29, 2022

Copy link
Copy Markdown
Author

maybe in the future the keys/settings should be stored in lfs

@tahnok tahnok left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks for doing this @jackbondpreston !

I agree, using LFS would be a better place for keys, you might even be able to have a command line interface to set up the secret

totp_state->current_key_offset = 0;
totp_state->current_index = 0;
}
TOTP(keys + totp_state->current_key_offset, key_sizes[totp_state->current_index], timesteps[totp_state->current_index]);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, it's a bit clearer to use a subscript here rather than adding an offset

@tahnok
tahnok merged commit e2ab6ce into joeycastillo:main Sep 4, 2022
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.

1 participant