{"id":17843042,"url":"https://github.com/tobycm/loginfc","last_synced_at":"2025-03-20T05:30:53.746Z","repository":{"id":251439153,"uuid":"829851307","full_name":"tobycm/loginfc","owner":"tobycm","description":"Login with NFC tags xddd","archived":false,"fork":false,"pushed_at":"2024-11-18T00:19:04.000Z","size":2673,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T15:06:47.747Z","etag":null,"topics":["linux","nfc","nodejs","pcsc","security","ubuntu"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tobycm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-17T06:01:09.000Z","updated_at":"2024-11-30T22:29:21.000Z","dependencies_parsed_at":"2024-11-18T01:35:32.082Z","dependency_job_id":null,"html_url":"https://github.com/tobycm/loginfc","commit_stats":null,"previous_names":["tobycm/loginfc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobycm%2Floginfc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobycm%2Floginfc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobycm%2Floginfc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobycm%2Floginfc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tobycm","download_url":"https://codeload.github.com/tobycm/loginfc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244559743,"owners_count":20472208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["linux","nfc","nodejs","pcsc","security","ubuntu"],"created_at":"2024-10-27T21:21:56.017Z","updated_at":"2025-03-20T05:30:52.767Z","avatar_url":"https://github.com/tobycm.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![loginfc banner](/loginfc.png)](https://github.com/tobycm/loginfc)\n\n# loginfc\n\nLogin with NFC tags xddd\n\nDemo: https://www.youtube.com/watch?v=sH1NHUF4jtQ\n\n## Installation\n\n### Prerequisites\n\n- NodeJS\n- npm (or pnpm)\n- NFC card reader/writer\n- NFC card\n- pcsc\n\n### 1. Install dependencies\n\n```sh {\"id\":\"01J6NBCGD21GEH0ZM3FS70D7MN\"}\nnpm install\n```\n\nor\n\n```sh {\"id\":\"01J6NBCGD3F5MJNPNHYJ4NWCVF\"}\npnpm install\n```\n\n### 2. Generate a new key\n\n```sh {\"id\":\"01J6NBCGD3F5MJNPNHYJH4KSBH\"}\nnpm run genkey\n```\n\n(or pnpm)\n\n### 3. Write key to card\n\n```sh {\"id\":\"01J6NBCGD3F5MJNPNHYM6ARKFG\"}\nnpm run writekey\n```\n\nTap key to NFC card writer\n\nDelete the key after successful write\n\n### 4. Add key hash and username to `users.ts`\n\nAdd a new array element\n\nCurrent:\n\n```typescript {\"id\":\"01J6NBFYCXEEHRKTCMTV6P1YQH\"}\nconst users: Map\u003cHash, Username\u003e = new Map([\n  [\"50ab5dd29f686c5ca8802bfd912f97f06992c0cd63a1bdec59ae7f244a81d9de29916af0552205cf2ede408fb014436ee003f876c186b581a25e381665637482\", \"toby\"], //\n]);\n```\n\nAfter:\n\n```typescript {\"id\":\"01J6NBH46XMR80CPCEPHJKWJCQ\"}\nconst users: Map\u003cHash, Username\u003e = new Map([\n  [\"50ab5dd29f686c5ca8802bfd912f97f06992c0cd63a1bdec59ae7f244a81d9de29916af0552205cf2ede408fb014436ee003f876c186b581a25e381665637482\", \"toby\"], //\n  [\"your_hash_here\", \"your_username_here\"],\n]);\n```\n\n### 5. Start the listener\n\n```sh {\"id\":\"01J6NBCGD3F5MJNPNHYQ044DVH\"}\nnpm run start\n```\n\n### 5. Enjoy :D\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobycm%2Floginfc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftobycm%2Floginfc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobycm%2Floginfc/lists"}