{"id":19410832,"url":"https://github.com/melvinmo/otp-hardware-token-device","last_synced_at":"2026-06-12T13:31:05.199Z","repository":{"id":192104349,"uuid":"686364615","full_name":"MelvinMo/OTP-Hardware-Token-Device","owner":"MelvinMo","description":"This repository contains code for an OTP token device using an ATmega32 microcontroller for generating one-time passwords as the final project of the undergraduate microprocessor course.","archived":false,"fork":false,"pushed_at":"2023-09-02T14:55:05.000Z","size":3289,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T02:31:08.144Z","etag":null,"topics":["atmega32","atmel-studio","microcontroller","microprocessor","proteus"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MelvinMo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-02T14:44:30.000Z","updated_at":"2023-09-02T14:53:58.000Z","dependencies_parsed_at":"2023-09-02T16:00:23.305Z","dependency_job_id":null,"html_url":"https://github.com/MelvinMo/OTP-Hardware-Token-Device","commit_stats":null,"previous_names":["melvinmo/otp-hardware-token-device"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MelvinMo/OTP-Hardware-Token-Device","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MelvinMo%2FOTP-Hardware-Token-Device","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MelvinMo%2FOTP-Hardware-Token-Device/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MelvinMo%2FOTP-Hardware-Token-Device/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MelvinMo%2FOTP-Hardware-Token-Device/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MelvinMo","download_url":"https://codeload.github.com/MelvinMo/OTP-Hardware-Token-Device/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MelvinMo%2FOTP-Hardware-Token-Device/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34247460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["atmega32","atmel-studio","microcontroller","microprocessor","proteus"],"created_at":"2024-11-10T12:18:15.812Z","updated_at":"2026-06-12T13:31:05.172Z","avatar_url":"https://github.com/MelvinMo.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OTP-Hardware-Token-Device\n \nThis project involved developing an OTP (one-time password) token device with the Proteus Design Suite and Atmel Studio app and physically with the required hardware devices using an ATmega32 microcontroller.\n\nThe key components of the system include:\n- LCD display with 16x2 characters to show menus, messages, and one-time passwords.\n- Matrix keypad for user input and navigation.\n- Custom PCB with microcontroller, LCD, keypad, and other components soldered on.\n\nThe system has multiple menus:\n\n- Generate One-Time Password: User enters a PIN code, which is validated against the stored PIN. If correct, a 9-digit one-time password is randomly generated and displayed. This can be used for authentication.\n- Change PIN Code: User enters current PIN code, which is validated. If correct, user can enter a new PIN code which is stored.\n- Disable Card: Allows user to permanently disable the device if needed.\n- Turn Display On/Off: To save power, display can be turned off, and turned back on with a keypress.\n\nAn ATmega32 microcontroller runs the main program loop, handles user input, controls the LCD display, generates random passwords, and manages other logic. Some key functions I have implemented include:\n\n- Custom LCD driver functions for initialization, sending commands and data, going to specific positions, etc.\n- Keypad scanning routine to detect button presses.\n- Password verification functions.\n- Random password generation using srand and rand functions.\n- Menu system and overall program flow control.\n- Timer interrupt to turn display off after set timeout.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelvinmo%2Fotp-hardware-token-device","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmelvinmo%2Fotp-hardware-token-device","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelvinmo%2Fotp-hardware-token-device/lists"}