{"id":18563592,"url":"https://github.com/ishanoshada/safescript","last_synced_at":"2025-07-25T04:39:30.534Z","repository":{"id":203067892,"uuid":"708709765","full_name":"Ishanoshada/SafeScript","owner":"Ishanoshada","description":"SafeScript is a Python module designed to bolster web application security by offering functions that combat common vulnerabilities like XSS and SQL Injection attacks. It provides methods for sanitizing HTML content, escaping special characters, and preventing malicious input from compromising your application's integrity.","archived":false,"fork":false,"pushed_at":"2023-10-26T01:44:00.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-17T13:12:11.383Z","etag":null,"topics":["cybersecurity","pypi-package","python","safescript","sqli","xss","xss-payload"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/safescript","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/Ishanoshada.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}},"created_at":"2023-10-23T08:24:47.000Z","updated_at":"2023-10-23T09:24:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"c4739b4a-4106-4f51-b170-759e07ea68f1","html_url":"https://github.com/Ishanoshada/SafeScript","commit_stats":null,"previous_names":["ishanoshada/safescript"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ishanoshada%2FSafeScript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ishanoshada%2FSafeScript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ishanoshada%2FSafeScript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ishanoshada%2FSafeScript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ishanoshada","download_url":"https://codeload.github.com/Ishanoshada/SafeScript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254394726,"owners_count":22063984,"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":["cybersecurity","pypi-package","python","safescript","sqli","xss","xss-payload"],"created_at":"2024-11-06T22:12:59.210Z","updated_at":"2025-05-15T18:13:39.071Z","avatar_url":"https://github.com/Ishanoshada.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SafeScript v1.0.2\n\n![Python Version](https://img.shields.io/badge/python-3.9-blue.svg)\n\nSafeScript is a Python module designed to enhance the security of web applications by providing various functions to prevent common security vulnerabilities such as XSS and SQL Injection attacks.\n\n## Features\n\n- **sanitize_html**: Sanitize HTML content to prevent XSS attacks.\n- **escape_html**: Escape special characters in HTML content.\n- **sanitize_sql**: Sanitize SQL input to prevent SQL Injection attacks.\n- **prevent_xss_and_sqli**: Prevent both XSS and SQL Injection attacks.\n\n## Installation\n\nYou can install SafeScript using pip:\n\n```bash\npip install safescript\n```\n\n## Usage\n\n```python\nfrom safescript import SafeScript\n\n# Example Usage\ninput_data = \"\u003cscript\u003ealert('XSS Attack')\u003c/script\u003e\"\noutput = SafeScript.prevent_xss_and_sqli(input_data)\nprint(output)\n```\n\n## Functions\n\n- **sanitize_html(input_html)**\n   - Sanitize HTML content to prevent XSS attacks.\n\n- **escape_html(input_html)**\n   - Escape special characters in HTML content.\n\n- **sanitize_sql(input_sql)**\n   - Sanitize SQL input to prevent SQL Injection attacks.\n\n- **prevent_xss_and_sqli(input_data)**\n   - Prevent both XSS and SQL Injection attacks.\n\n## Version History\n\n- v1.0.2 (Current Version)\n    - [List of changes in v1.0.2]\n\n- v1.0.1\n   - Initial release with basic security functions.\n\n**Repository Views** ![Views](https://profile-counter.glitch.me/safescript/count.svg)\n\n \n## Contributors\n\n- [Ishan Oshada](https://github.com/ishanoshada)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fishanoshada%2Fsafescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fishanoshada%2Fsafescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fishanoshada%2Fsafescript/lists"}