{"id":15154266,"url":"https://github.com/traxdinosaur/authorex","last_synced_at":"2026-01-31T21:37:06.855Z","repository":{"id":246819528,"uuid":"823727782","full_name":"TraxDinosaur/AuthoRex","owner":"TraxDinosaur","description":"A package for generating and authenticating OTPs using MongoDB.","archived":false,"fork":false,"pushed_at":"2024-07-03T17:17:16.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-20T14:05:48.542Z","etag":null,"topics":["auth","authentication","mongodb","mongodb-atlas","mongodb-database"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/AuthoRex/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"ncsa","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TraxDinosaur.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-03T15:31:52.000Z","updated_at":"2024-07-03T17:17:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"07efa14a-dd27-44a3-b260-4f3eb97dad0e","html_url":"https://github.com/TraxDinosaur/AuthoRex","commit_stats":null,"previous_names":["traxdinosaur/authorex"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TraxDinosaur%2FAuthoRex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TraxDinosaur%2FAuthoRex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TraxDinosaur%2FAuthoRex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TraxDinosaur%2FAuthoRex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TraxDinosaur","download_url":"https://codeload.github.com/TraxDinosaur/AuthoRex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239850437,"owners_count":19707350,"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":["auth","authentication","mongodb","mongodb-atlas","mongodb-database"],"created_at":"2024-09-26T17:20:33.876Z","updated_at":"2026-01-31T21:37:06.814Z","avatar_url":"https://github.com/TraxDinosaur.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AuthoRex\n\nAuthoRex is a Python package for generating and authenticating OTPs (One-Time Passwords) using MongoDB for storage. This package is useful for applications that require secure OTP-based authentication.\n\n## Features\n\n- Generate OTPs.\n- Authenticate OTPs.\n- Uses MongoDB for storing OTPs securely.\n\n## Installation\n\nYou can install AuthoRex using pip:\n\n```sh\npip install AuthoRex\n```\n\n## Usage\n\n### Importing the package\n\nYou can import the entire package or specific functions:\n\n```python\nimport AuthoRex\n\n# Or import specific functions\nfrom AuthoRex import genOTP, authOTP\n```\n\n### Generating an OTP\n\nGenerate an OTP for a given number:\n\n```python\n# Using the package import\nprint(AuthoRex.genOTP(\"123\"))\n\n# Using the function import\nprint(genOTP(\"123\"))\n```\n\n### Authenticating an OTP\n\nAuthenticate an OTP for a given number:\n\n```python\n# Using the package import\nprint(AuthoRex.authOTP(\"123\", 123456))  # Replace 123456 with the actual OTP generated\n\n# Using the function import\nprint(authOTP(\"123\", 123456))  # Replace 123456 with the actual OTP generated\n```\n\n## Example\n\nHere's a complete example of how to use AuthoRex:\n\n```python\nimport AuthoRex\n\n# Generate OTP for a number\nresponse = AuthoRex.genOTP(\"123\")\nprint(response)\n\n# Authenticate OTP for the same number\nis_authenticated = AuthoRex.authOTP(\"123\", 123456)  # Replace 123456 with the actual OTP generated\nprint(\"Authenticated\" if is_authenticated else \"Authentication Failed\")\n```\n\n## MongoDB Configuration\n\nAuthoRex uses MongoDB to store OTPs. Make sure you have a MongoDB instance running and update the MongoDB URI in the code as per your setup.\n\n## License\n\nThis project is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. See the [LICENSE](https://github.com/TraxDinosaur/AuthoRex/blob/main/LICENSE) file for more details.\n\n## Author\n\nAuthoRex is developed and maintained by [TraxDinosaur](https://github.com/TraxDinosaur). For any queries or support, you can reach out to [TraxDinosaur](https://traxdinosaur.github.io).\n\n## Contributing\n\nContributions are welcome! Please fork the repository and submit a pull request for any improvements or bug fixes.\n\n## Acknowledgements\n\n- The package uses [pymongo](https://pypi.org/project/pymongo/) for MongoDB interactions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftraxdinosaur%2Fauthorex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftraxdinosaur%2Fauthorex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftraxdinosaur%2Fauthorex/lists"}