{"id":26967060,"url":"https://github.com/joswinemmanuel/confidential-data-pdf","last_synced_at":"2025-04-03T08:37:43.644Z","repository":{"id":284003625,"uuid":"953524887","full_name":"joswinemmanuel/Confidential-Data-Pdf","owner":"joswinemmanuel","description":"A Python utility to generate PDFs containing fake website, username, and password data, useful for testing and demonstrations.","archived":false,"fork":false,"pushed_at":"2025-03-23T15:36:56.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T16:33:16.937Z","etag":null,"topics":["pdf","python","reportlab"],"latest_commit_sha":null,"homepage":"","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/joswinemmanuel.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":"2025-03-23T15:13:20.000Z","updated_at":"2025-03-23T15:42:31.000Z","dependencies_parsed_at":"2025-03-23T16:43:30.548Z","dependency_job_id":null,"html_url":"https://github.com/joswinemmanuel/Confidential-Data-Pdf","commit_stats":null,"previous_names":["joswinemmanuel/confidential-data-pdf"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joswinemmanuel%2FConfidential-Data-Pdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joswinemmanuel%2FConfidential-Data-Pdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joswinemmanuel%2FConfidential-Data-Pdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joswinemmanuel%2FConfidential-Data-Pdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joswinemmanuel","download_url":"https://codeload.github.com/joswinemmanuel/Confidential-Data-Pdf/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246969054,"owners_count":20862482,"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":["pdf","python","reportlab"],"created_at":"2025-04-03T08:37:43.123Z","updated_at":"2025-04-03T08:37:43.635Z","avatar_url":"https://github.com/joswinemmanuel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fake Confidential Data PDF Generator\n\nThis Python script generates a PDF file containing fake confidential data, such as website URLs, usernames, and passwords. It uses the `reportlab` library to create the PDF.\n\n## Prerequisites\n\n* Python 3.x\n* `reportlab` library (install with `pip install reportlab`)\n\n## How to Use\n\n1.  **Save the script:** Save the Python code as a `.py` file (e.g., `pdf_generator.py`).\n2.  **Install dependencies:** If you don't have `reportlab` installed, run:\n\n    ```bash\n    pip install reportlab\n    ```\n\n3.  **Run the script:** Execute the Python script from your terminal:\n\n    ```bash\n    python pdf_generator.py\n    ```\n\n4.  **Output:** A PDF file named `confidential_data.pdf` will be created in the same directory as the script.\n\n## Functionality\n\n* The script generates a PDF with fake website, username, and password data.\n* The PDF's file size is checked to ensure it remains under 500 KB.\n* The script handles page breaks to accommodate varying amounts of generated data.\n* The output is formatted to be readable.\n\n## Code Explanation\n\n* **`generate_fake_data()`:** Generates a list of tuples, each containing a fake website, username, and password.\n* **`create_pdf()`:** Creates the PDF file using `reportlab`. It iterates through the generated data and adds it to the PDF. It also handles page breaks to ensure the content fits.\n* **`check_pdf_size()`:** Checks the size of the generated PDF and prints the size in bytes to the console, and then confirms if it is under the 500kb limit.\n\n## Example Output\n\nThe generated PDF will contain data similar to this:\n\n```\nConfidential Data\n\nWebsite: abcdefg.com\nUsername: aB1cDe2fG3\nPassword: aB1c!@#$dE2fG3hI4jK\n\nWebsite: hijklmno.com\nUsername: pQ5rSt6uV7\nPassword: lM8n%^\u0026*oP9qRs0tU\n\n... and so on ...\n```\n\n## Notes\n\n* This script is intended for generating *fake* data for testing or demonstration purposes.\n* Do not use the generated data for any real-world confidential information.\n* The number of generated entries can be easily modified by changing the `num_entries` variable within the `generate_fake_data` function.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoswinemmanuel%2Fconfidential-data-pdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoswinemmanuel%2Fconfidential-data-pdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoswinemmanuel%2Fconfidential-data-pdf/lists"}