{"id":14974080,"url":"https://github.com/crdzbird/secured-sql","last_synced_at":"2026-02-09T10:04:19.138Z","repository":{"id":82552103,"uuid":"217152019","full_name":"Crdzbird/Secured-SQL","owner":"Crdzbird","description":"This SQL was created with the purpose to give that extra security that sometimes is needed in the Database.","archived":false,"fork":false,"pushed_at":"2020-06-29T01:32:40.000Z","size":43,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T13:27:05.970Z","etag":null,"topics":["databases","plpgsql","security-tools","tsql"],"latest_commit_sha":null,"homepage":"","language":"TSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Crdzbird.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2019-10-23T20:56:08.000Z","updated_at":"2024-10-16T00:10:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"d1964754-5ba4-4308-a988-f00aa8638fe4","html_url":"https://github.com/Crdzbird/Secured-SQL","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.2142857142857143,"last_synced_commit":"c23df25b2ac15a8c7a8167963590c2223219cb5f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Crdzbird/Secured-SQL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crdzbird%2FSecured-SQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crdzbird%2FSecured-SQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crdzbird%2FSecured-SQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crdzbird%2FSecured-SQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Crdzbird","download_url":"https://codeload.github.com/Crdzbird/Secured-SQL/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crdzbird%2FSecured-SQL/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267652766,"owners_count":24122098,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["databases","plpgsql","security-tools","tsql"],"created_at":"2024-09-24T13:49:55.520Z","updated_at":"2025-07-29T08:08:38.320Z","avatar_url":"https://github.com/Crdzbird.png","language":"TSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Secured-SQL\nOne thing that i was always wish to develop was a way to secure all the procedures in the database.\n\nAs you know even the most efficients programs has some issues related with security, some are in the backend others in the client side, but almost no one take care of the DB side.\n\nSo that's why this project was developed.\n\nYou can add the functions to any part or even call it from your Backend and sanitize.\n\n- SQL-INJECTIONS\n- XSS\n- EMPTY VALUES\n- Tags with Attributes included!\n\n\n## Examples\n\n\nWhen you call this function into any statement, it's gonna filter each character and set the respective value according to the delimeters specified inside \u003cb\u003estr_clean()\u003c/b\u003e\n\n```sql\n  select 'DEMO' as returns, str_clean('DEMO', true, true, true, true, true, true, true);\n```\n\n| returns | str_clean |\n| ------ | ----------- |\n| DEMO   | DEMO |\n  \n\n```  \n  select 'DEMO123 demos' as returns, str_clean('\u003ch1\u003eDEMO\u003c/h1\u003e123   demos', true, true, true, true, true, true, true);\n```\n\n| returns | str_clean |\n| ------ | ----------- |\n| DEMO123 demos   |``` \u003ch1\u003eDEMO\u003c/h1\u003e123   demos ```|\n\n```\n  select 'DEMO123 456 7' as returns, str_clean('      DEMO    1234    56          7', true, true, true, true, true, true, true);\n```\n\n| returns | str_clean |\n| ------ | ----------- |\n| DEMO123 456 7   |```       DEMO    1234    56          7``` |\n\n```\n  select 'DEMOnds/5' as returns, str_clean('DEMO\\n\\ds/5', true, true, true, true, true, true, true);\n```\n\n| returns | str_clean |\n| ------ | ----------- |\n| DEMOnds/5   | ```DEMO\\n\\ds/5``` |\n\n```\n  select '¿Is this a demo?' as returns, str_clean('\u0026iquest;Is this a demo?', true, true, true, true, true, true, true);\n```\n\n| returns | str_clean |\n| ------ | ----------- |\n| ¿Is this a demo?   | ```\u0026iquest;Is this a demo?``` |\n\n\nDONE:\n- [x] MYSQL\n- [x] POSTGRESQL\n- [x] SQL-SERVER\n\n\nTODO:\n- [ ] ORACLE\n- [ ] JSON VALIDATIONS\n- [ ] ARRAYS VALIDATIONS\n\n\n### Contributing\n\nAll contributions are welcome!\n\nIf you like this project then please click on the :star: it'll be appreciated or if you wanna add some functionality you can submite your pull request :)\nor if you have an idea please let me know to my email: \u003cluisalfonsocb83@gmail.com\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrdzbird%2Fsecured-sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrdzbird%2Fsecured-sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrdzbird%2Fsecured-sql/lists"}