{"id":20320277,"url":"https://github.com/cstringer17/hashedpotatoes","last_synced_at":"2025-12-01T00:04:42.816Z","repository":{"id":55395236,"uuid":"317571096","full_name":"cstringer17/HashedPotatoes","owner":"cstringer17","description":"Password Playground in PHP","archived":false,"fork":false,"pushed_at":"2021-01-04T13:26:48.000Z","size":1698,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-14T13:33:58.166Z","etag":null,"topics":["mysql","password-playground","php","php-files"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/cstringer17.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}},"created_at":"2020-12-01T14:41:39.000Z","updated_at":"2021-01-04T13:26:50.000Z","dependencies_parsed_at":"2022-08-14T23:20:28.512Z","dependency_job_id":null,"html_url":"https://github.com/cstringer17/HashedPotatoes","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cstringer17%2FHashedPotatoes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cstringer17%2FHashedPotatoes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cstringer17%2FHashedPotatoes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cstringer17%2FHashedPotatoes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cstringer17","download_url":"https://codeload.github.com/cstringer17/HashedPotatoes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241820777,"owners_count":20025601,"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":["mysql","password-playground","php","php-files"],"created_at":"2024-11-14T18:49:33.667Z","updated_at":"2025-12-01T00:04:42.773Z","avatar_url":"https://github.com/cstringer17.png","language":"PHP","readme":"\n```\n  _    _           _              _   _____      _        _                  \n | |  | |         | |            | | |  __ \\    | |      | |                 \n | |__| | __ _ ___| |__   ___  __| | | |__) |__ | |_ __ _| |_ ___   ___  ___ \n |  __  |/ _` / __| '_ \\ / _ \\/ _` | |  ___/ _ \\| __/ _` | __/ _ \\ / _ \\/ __|\n | |  | | (_| \\__ \\ | | |  __/ (_| | | |  | (_) | || (_| | || (_) |  __/\\__ \\\n |_|  |_|\\__,_|___/_| |_|\\___|\\__,_| |_|   \\___/ \\__\\__,_|\\__\\___/ \\___||___/\n ```\n                                                                            \n\n\n![PHP Composer](https://github.com/cstringer17/HashedPotatoes/workflows/PHP%20Composer/badge.svg)\n\n# Password Playground in PHP\n\nTo get our project running run the following MYSQL script in a MYSQL installation [MYSQL File](./mysql/userRegisterTable.sql)\n\nAfter that you can run the PHP Files, maybe start with [Register Page](./pages/register.php)\n\n\n\n## Installation\n\nFirst download the [source code](https://github.com/cstringer17/HashedPotatoes/releases/tag/v1.0-alpha)\n\nThen cd into the root folder and run the following composer command to install the dependencies\nDownload composer here: https://getcomposer.org/download/\n\n`composer install`\n\n### Database setup\n\nThe following script sets up the mysql database with all the users and tables\n\nmysql/userRegisterTable.sql\n\n### hCaptcha Setup\n\nAs we use captcha on this web application there are a few changes that need to be done to get this to work in local development the following instructions taken from the hCaptcha Developer Docs will get it running:\n\n\n\u003e Modern browsers have strict CORS and CORB rules, so opening a file:// URI that loads hCaptcha will not work. Loading hCaptcha from http://localhost/ will encounter the same issue on some browsers. The hCaptcha API also prohibits 'localhost' and '127.0.0.1' as supplied hostnames.\n\u003e The simplest way to circumvent these issues is to add a hosts entry. For example:\n\n`127.0.0.1 test.mydomain.com`\n\n\u003e Place this in /etc/hosts on Linux, /private/etc/hosts on Mac OS X, or C:\\Windows\\System32\\Drivers\\etc\\hosts on Windows.\n\u003e You can then access your local server via http://test.mydomain.com, and everything will work as expected.\n\nQuoted from https://docs.hcaptcha.com/#localdev\n\n\n### Running the web server\nIn VSCode you can use the following extension to run the php webserver\n\nhttps://github.com/brapifra/vscode-phpserver\n\nAs we changed the host file in the hCaptcha setup you will need to point the extension to the domain name given above:\n\n![image](https://github.com/cstringer17/hashedpotatoes/blob/master/docs/web-server-config.png?raw=true)\n\n### PHP Sodium configuration\n\nThe application uses the PHP sodium library to encrypt passwords, this however needs to be enables in the php.ini file inside your php installation. Add the following line to that file\n\n`extension=php_sodium.dll`\n\n\n\n\ncreated by @cstringer17 and @FlicT1337\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcstringer17%2Fhashedpotatoes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcstringer17%2Fhashedpotatoes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcstringer17%2Fhashedpotatoes/lists"}