{"id":15716992,"url":"https://github.com/cjpatton/yubi","last_synced_at":"2026-02-15T16:38:52.234Z","repository":{"id":152902802,"uuid":"114293162","full_name":"cjpatton/yubi","owner":"cjpatton","description":"Building a better YubiKey. Term project for CNT 5410, Patrick Traynor, Fall 2017.","archived":false,"fork":false,"pushed_at":"2020-05-06T12:08:37.000Z","size":428,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-07T03:35:02.660Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TeX","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/cjpatton.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-14T20:24:41.000Z","updated_at":"2020-05-06T12:08:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"170214fa-1ebf-485f-a6af-d18e166cc027","html_url":"https://github.com/cjpatton/yubi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cjpatton/yubi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjpatton%2Fyubi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjpatton%2Fyubi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjpatton%2Fyubi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjpatton%2Fyubi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cjpatton","download_url":"https://codeload.github.com/cjpatton/yubi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjpatton%2Fyubi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29484662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T15:33:17.885Z","status":"ssl_error","status_checked_at":"2026-02-15T15:32:53.698Z","response_time":118,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-10-03T21:48:24.625Z","updated_at":"2026-02-15T16:38:52.217Z","avatar_url":"https://github.com/cjpatton.png","language":"TeX","funding_links":[],"categories":[],"sub_categories":[],"readme":"Building a better YubiKey\n=========================\n\nHardware tokens are pretty good at providing two-factor authentication. But as\nif you're going to carry around a YubiKey in your pocket all the time, shouldn't\nit do more? This directory contains PDF `yubi.pdf`, the beginnings of a\ntechnical report analyzing the security of the symmetric-key YubiKey protocol,\nand a proposal for making the protocol more flexible. It also contains a\nreference implementation in Python.\n\nReference implementation of OTP2\n--------------------------------\n\nThis directory contains a Python implementation of the OTP1 and OTP2 protocols\ndescribed in the text. The main module is `otp.py`; the remaining files are unit\nand integration tests. Note that `otp_test.py` will fail unless you have a YubiKey\nplugged into your system. (See the comments in the file for more details.)\n\n**Installation.**\nThe code depends on Yubico's Python module. To install it, do\n```\n  $ git clone git@github.com:yubico/python-yubico.git\n  $ cd pythong-yubico\n  $ python setup.py build\n  $ sudo python setup.py install\n```\n\nNow you should be able to run the unit tests:\n```\n  $ python otp_test.py\n```\nNote that the **test will fail** unless you have a YubiKey plugged in that is\nconfigured properly. To skip this test, comment out line `otp_test.py:109` that\nreads `test1()`; `test2()` should pass even without a YubiKey.\n\n**Running `softkey.py`.**\nClass `SoftKey2` is a software version of the OTP2 hardware token. It is useful\nfor testing purpose. Program `softkey.py` executes a simple UDP server on\n`localhost:8084` that dispatches requests to a test SoftKey2. We provide a few\nsimple test programs for illustrating its use:\n\n  * `softkey_otp0.py`: Simple OTP.\n  * `softkey_2fa.py`: Runs the 2FA protocol described in the text using\n    request-bounded OTP.\n  * `softkey_tranport.py`: Uses the transport and transport finish modes to\n    encrypt a message and associated data. The program also shows how to\n    decrypt.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjpatton%2Fyubi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcjpatton%2Fyubi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjpatton%2Fyubi/lists"}