{"id":18486114,"url":"https://github.com/mathsgod/jwt-recaptcha","last_synced_at":"2026-02-11T13:02:36.354Z","repository":{"id":62525137,"uuid":"253752971","full_name":"mathsgod/jwt-recaptcha","owner":"mathsgod","description":"using json web token for recaptcha, without session, without database","archived":false,"fork":false,"pushed_at":"2025-02-04T03:01:12.000Z","size":160,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-25T01:43:34.178Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","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/mathsgod.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,"zenodo":null}},"created_at":"2020-04-07T09:53:02.000Z","updated_at":"2025-02-04T03:00:33.000Z","dependencies_parsed_at":"2024-11-06T12:52:07.976Z","dependency_job_id":"9da47c82-cdb2-4055-8c89-f20e514e9227","html_url":"https://github.com/mathsgod/jwt-recaptcha","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/mathsgod/jwt-recaptcha","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fjwt-recaptcha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fjwt-recaptcha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fjwt-recaptcha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fjwt-recaptcha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathsgod","download_url":"https://codeload.github.com/mathsgod/jwt-recaptcha/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fjwt-recaptcha/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29333155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T12:42:24.625Z","status":"ssl_error","status_checked_at":"2026-02-11T12:41:23.344Z","response_time":97,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-06T12:47:53.551Z","updated_at":"2026-02-11T13:02:36.322Z","avatar_url":"https://github.com/mathsgod.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jwt-recaptcha\nusing jwt for recaptcha in php\n\n## Server generate hash\n```php\n$secret=\"your secret key\";\n\n$re = new ReCaptcha($secret);\n$hash = $re-\u003ehash();\n\necho $hash[\"token\"]; //token sent to user, use for verify later\necho $hash[\"image\"]; //recaptcha image\n\n```\n\n## Server verify recaptcha code\n```php\n$re = new ReCaptcha($secret);\n$code;//get from user\n$token;//get from user sent before\n\nif($re-\u003everify($code,$token)){\n    //correct code\n}else{\n    //incorrect code \n}\n```\n\n### Demo\n```php\n\n$re = new ReCaptcha($secret,  [\n    \"charset\" =\u003e \"1234567890\",\n    \"code_length\" =\u003e 4,\n    \"num_lines\" =\u003e 1,\n    \"perturbation\" =\u003e 0.5\n]);\n\n$hash = $re-\u003ehash();\n$image_src = $hash[\"image\"];\n```\n\u003cimg src=\"https://raw.githubusercontent.com/mathsgod/jwt-recaptcha/refs/heads/master/demo/demo.png\"/\u003e\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathsgod%2Fjwt-recaptcha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathsgod%2Fjwt-recaptcha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathsgod%2Fjwt-recaptcha/lists"}