BenjaminSoelberg / openchronos-ng-elf

Fully modular opensource firmware for the eZ430 chronos using TI's new msp430-elf-gcc
GNU General Public License v3.0
59 stars 22 forks source link

Support multiple TOTP Secrets to be configured, the format of the fie… #27

Closed quoraquestions closed 7 years ago

quoraquestions commented 7 years ago

…ld in user input is now SINGLE-ALPHABET-IDENTIFIER:TOTP_KEY the SINGLE-ALPHABET-IDENTIFIER is optional and if user does not supply it the build system uses numeric identifiers such as 1,2,3... are used, to cycle between keys press up/down buttons, the SINGLE-ALPHABET-IDENTIFIER is shown on the top lcd leftmost segment in a blinking fashion.

NB: config.h.circle may need to be regenerated since the format in which keys are stored has changed and is incompatible with the previous string-only format

quoraquestions commented 7 years ago

sample TOTP keys used for testing

G:ATNIUMOTRUMZPTUZTNZN3O4U7MH67IB7, D:ATNIUMOTRUMZPTUZTNZN3O4U7MH67IB6, G:ATNIUMOTRUMZPTUZTNZN3O4U7MH67IB5,D:ATNIUMOTRUMZPTUZTNZN3O4U7MH67IB4

quoraquestions commented 7 years ago

There's a minor annoyance i have been trying to figure out, after i use the display_char with blink params to show the 'Identifier' like G for 'Google' even after i exit otp functionality the respective character lit areas still blink. the code does display_clear but looks like that is not sufficient

quoraquestions commented 7 years ago

valid otp secrets No Identifier specified ATNIUMOTRUMZPTUZTNZN3O4U7MH67IB7,ATNIUMOTRUMZPTUZTNZN3O4U7MH67IB6 Identifiers specified: G:ATNIUMOTRUMZPTUZTNZN3O4U7MH67IB7, D:ATNIUMOTRUMZPTUZTNZN3O4U7MH67IB6,

mix and match is allowed too.