{"id":22606668,"url":"https://github.com/benjaminmedia/phpass","last_synced_at":"2025-03-28T22:15:21.079Z","repository":{"id":140156651,"uuid":"411262912","full_name":"BenjaminMedia/phpass","owner":"BenjaminMedia","description":null,"archived":false,"fork":false,"pushed_at":"2021-09-28T13:40:31.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-26T14:54:35.724Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/BenjaminMedia.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-28T11:59:28.000Z","updated_at":"2021-09-28T13:38:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"dce11ab1-3395-4c52-b8a2-9a23edb6cb38","html_url":"https://github.com/BenjaminMedia/phpass","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenjaminMedia%2Fphpass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenjaminMedia%2Fphpass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenjaminMedia%2Fphpass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenjaminMedia%2Fphpass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BenjaminMedia","download_url":"https://codeload.github.com/BenjaminMedia/phpass/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246106689,"owners_count":20724401,"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":[],"created_at":"2024-12-08T14:14:32.428Z","updated_at":"2025-03-28T22:15:21.056Z","avatar_url":"https://github.com/BenjaminMedia.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Openwall Phpass, modernized\n===========================\n\n[![Build Status](https://secure.travis-ci.org/hautelook/phpass.png?branch=master)](http://travis-ci.org/hautelook/phpass)\n[![HHVM Status](http://hhvm.h4cc.de/badge/hautelook/phpass.png)](http://hhvm.h4cc.de/package/hautelook/phpass)\n\nThis is Openwall's [Phpass](http://openwall.com/phpass/), based on the 0.3 release, but modernized slightly:\n\n- Namespaced\n- Composer support (Autoloading)\n- PHP 5 style\n- Unit Tested\n\nThe changes are minimal and only stylistic. The source code is in the public domain. We claim no ownership, but needed it for one of our projects, and wanted to make it available to other people as well. \n\n## Installation ##\n\nAdd this requirement to your `composer.json` file and run `composer.phar install`:\n\n    {\n        \"require\": {\n            \"bonnier/phpass\": \"dev-master\"\n        }\n    }\n\n## Usage ##\n\nThe following example shows how to hash a password (to then store the hash in the database), and how to check whether a provided password is correct (hashes to the same value):  \n\n``` php\n\u003c?php\n\nnamespace Your\\Namespace;\n\nuse Hautelook\\Phpass\\PasswordHash;\n\nrequire_once(__DIR__ . \"/vendor/autoload.php\");\n \n$passwordHasher = new PasswordHash(8,false);\n \n$password = $passwordHasher-\u003eHashPassword('secret');\nvar_dump($password);\n \n$passwordMatch = $passwordHasher-\u003eCheckPassword('secret', \"$2a$08$0RK6Yw6j9kSIXrrEOc3dwuDPQuT78HgR0S3/ghOFDEpOGpOkARoSu\");\nvar_dump($passwordMatch);\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjaminmedia%2Fphpass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenjaminmedia%2Fphpass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjaminmedia%2Fphpass/lists"}