{"id":24159454,"url":"https://github.com/exfil0/luhn-wizard","last_synced_at":"2026-06-07T04:32:22.467Z","repository":{"id":271855885,"uuid":"914780704","full_name":"exfil0/luhn-wizard","owner":"exfil0","description":"This repository contains a Python script that validates card numbers using the Luhn algorithm, fetches BIN details using the Binlist API, and generates professional JSON reports for single and batch validations.","archived":false,"fork":false,"pushed_at":"2025-01-10T10:05:56.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-10T10:51:38.283Z","etag":null,"topics":["aml","bankcard","bin-number","compliance","emv","fraud-prevention","kyc","luhn-algorithm","validation"],"latest_commit_sha":null,"homepage":"","language":"Python","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/exfil0.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":"2025-01-10T09:42:24.000Z","updated_at":"2025-01-10T10:08:36.000Z","dependencies_parsed_at":"2025-01-10T11:03:13.448Z","dependency_job_id":null,"html_url":"https://github.com/exfil0/luhn-wizard","commit_stats":null,"previous_names":["exfil0/luhn-wizard"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exfil0%2Fluhn-wizard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exfil0%2Fluhn-wizard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exfil0%2Fluhn-wizard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exfil0%2Fluhn-wizard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/exfil0","download_url":"https://codeload.github.com/exfil0/luhn-wizard/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241448515,"owners_count":19964467,"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":["aml","bankcard","bin-number","compliance","emv","fraud-prevention","kyc","luhn-algorithm","validation"],"created_at":"2025-01-12T15:17:31.960Z","updated_at":"2026-06-07T04:32:22.403Z","avatar_url":"https://github.com/exfil0.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Luhn Validator Wizard\n\nThis repository contains a Python script that validates card numbers using the Luhn algorithm, fetches BIN details using the Binlist API, and generates professional JSON reports for single and batch validations.\n\n## Features\n\n- **Luhn Algorithm Validation**: Checks the validity of card numbers.\n- **BIN Details Fetching**: Fetches additional details for valid card numbers using the [Binlist API](https://binlist.net/).\n- **JSON Reports**:\n  - Generates structured JSON reports for both single and batch validations.\n  - Saves reports to `luhn_validation_report.json`.\n\n---\n\n## Installation and Usage\n\n### Step 1: Clone the Repository\n\n```bash\ngit clone https://github.com/exfil0/luhn-wizard.git\ncd luhn-wizard\n```\n\n### Step 2: Install Dependencies\n\nEnsure Python is installed on your system:\n\n```bash\npython3 --version\n```\n\nIf Python is not installed, install it:\n\n```bash\nsudo apt update \u0026\u0026 sudo apt install -y python3\n```\n\nAdditionally, install the `requests` library if not already installed:\n\n```bash\npip install requests\n```\n\n### Step 3: Run the Script\n\n```bash\npython3 luhn_wizard.py\n```\n\n---\n\n## Wizard Options\n\n1. **Validate a Single Card Number**: Enter a card number to validate its validity and fetch BIN details. The result is saved as a JSON report.\n2. **Validate Batch Card Numbers**: Provide a file path containing card numbers (one per line) for validation and BIN details fetching. The results are saved as a batch JSON report.\n\n---\n\n## Example Output\n\n### Single Card Validation\n```bash\nWelcome to the Luhn Validator Wizard!\n1. Validate a single card number\n2. Validate card numbers from a file\nChoose an option (1 or 2): 1\nEnter the card number to validate: 4111111111111111\nThe PAN 4111111111111111 is valid.\nFetching BIN details...\nBIN details:\n{\n    \"scheme\": \"visa\",\n    \"type\": \"debit\",\n    \"brand\": \"Visa Debit\",\n    \"bank\": {\n        \"name\": \"Example Bank\",\n        \"country\": \"US\"\n    }\n}\nReport saved to luhn_validation_report.json\n```\n\n### Batch Card Validation\n```bash\nWelcome to the Luhn Validator Wizard!\n1. Validate a single card number\n2. Validate card numbers from a file\nChoose an option (1 or 2): 2\nEnter the file path containing card numbers: test-cards.txt\nCard 1 (4111111111111111): valid\nBIN details:\n{\n    \"scheme\": \"visa\",\n    \"type\": \"debit\",\n    \"brand\": \"Visa Debit\",\n    \"bank\": {\n        \"name\": \"Example Bank\",\n        \"country\": \"US\"\n    }\n}\nCard 2 (1234567812345670): invalid\nCard 3 (4000001234567899): valid\nBIN details:\n{\n    \"scheme\": \"visa\",\n    \"type\": \"credit\",\n    \"brand\": \"Visa\",\n    \"bank\": {\n        \"name\": \"Another Bank\",\n        \"country\": \"UK\"\n    }\n}\nBatch report saved to luhn_validation_report.json\n```\n\n---\n\n## Notes\n\n- The script uses the [Binlist API](https://binlist.net/) to fetch BIN details. Ensure your internet connection is active.\n- Ensure the card numbers provided are in the correct format (12-19 digits).\n- JSON reports are saved to `luhn_validation_report.json` in the current directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexfil0%2Fluhn-wizard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexfil0%2Fluhn-wizard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexfil0%2Fluhn-wizard/lists"}