Skip to content

Commit

Permalink
Merge branch 'tmp'
Browse files Browse the repository at this point in the history
  • Loading branch information
jshin313 committed Oct 31, 2023
2 parents 4b00de0 + c465946 commit 3dccdf4
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.map
obj/
.gdb_history
Binary file modified bin/OTP.8xp
Binary file not shown.
Binary file modified bin/OTP.bin
Binary file not shown.
Empty file modified main
100644 → 100755
Empty file.
3 changes: 2 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ int main(void)
uint8_t* key;
size_t keylen;

char* b32key = "JBSWY3DPEHPK3PXP";
char* b32key = "J43EYWKOKBBUOWSVKJHUYWCRKZHVARZWJA2VQVKUJBBFASJSJZHQ====";
int len = strlen(b32key);

// Input key must be divisible by 8
Expand All @@ -39,6 +39,7 @@ int main(void)

key = malloc(keylen);
base32_decode(b32key, key, keylen);
uint32_t code = totp(key, keylen, 30, 6);

#ifndef REGULAR
gfx_Begin();
Expand Down

0 comments on commit 3dccdf4

Please sign in to comment.