{"id":15445147,"url":"https://github.com/ccubed/otpy","last_synced_at":"2025-03-28T08:15:17.254Z","repository":{"id":70711460,"uuid":"83502218","full_name":"ccubed/OTPy","owner":"ccubed","description":"Python 3 OTP Implementations","archived":false,"fork":false,"pushed_at":"2017-03-06T12:23:40.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-02T08:45:12.035Z","etag":null,"topics":["hotp","otp","python","python-3","rfc2289","rfc4226","rfc6238","totp"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/ccubed.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":"2017-03-01T02:28:56.000Z","updated_at":"2019-10-04T16:20:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"b7481c10-612e-4e2c-8702-b50b66d5cf54","html_url":"https://github.com/ccubed/OTPy","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"ef995fb4181f369b029bfb8ebb2570fd4611d696"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccubed%2FOTPy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccubed%2FOTPy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccubed%2FOTPy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccubed%2FOTPy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ccubed","download_url":"https://codeload.github.com/ccubed/OTPy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245991585,"owners_count":20706129,"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":["hotp","otp","python","python-3","rfc2289","rfc4226","rfc6238","totp"],"created_at":"2024-10-01T19:44:06.603Z","updated_at":"2025-03-28T08:15:17.228Z","avatar_url":"https://github.com/ccubed.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/ccubed/Gwiriwyd.svg?branch=master)](https://travis-ci.org/ccubed/Gwiriwyd)\n# OTPy\nI needed to handle One Time Passwords per RFC 4226, 6238 and 2289, but all the libraries on pypi were not valid and returned invalid values per the tests present in the Appendices. Therefore, I set about making my own.\n\n## Thanks\nThanks to [Laura](https://github.com/SunDwarf) for the name.\n\n# Current Status\n## RFC 2289 - OTP\nImplemented. Only supports MD4 and MD5.\n\n## RFC 4226 - HOTP\nImplemented. All tests complete good per the test values in Appendix D of RFC 4426.\n\n## RFC 6238 - TOTP\nPartially Implemented. Only supports SHA1 at the moment, but all unit tests completed successfully per the test values in the Appendix.\n\n# Guarantees\n## Provide a verification method\nAll implementations provide a method to verify a key given a specific set of values.\n\n## Provide an at method\nAnother problem I found with other libraries is that some failed to provide an `at` method. A method which would accept a specific counter or pass phrase and return the result.\n\n## Type Consistency\nAll the codes are turned as strings so that we don't strip leading zeros.\n\n## Provide a drift method\nI only found one implementation with a drift method, even though it's specified in all 3 RFCs that one should exist. You'll find mine conveniently named drift. Mostly for accepting codes, this allows you to easily generate a range of codes so that you can compensate for latency per RFC recommendations.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccubed%2Fotpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fccubed%2Fotpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccubed%2Fotpy/lists"}