{"id":13560094,"url":"https://github.com/dwightwatson/codeigniter-bcrypt","last_synced_at":"2025-04-03T15:31:32.902Z","repository":{"id":142059389,"uuid":"5228283","full_name":"dwightwatson/codeigniter-bcrypt","owner":"dwightwatson","description":"Adaption of PHPPass for use as a CodeIgniter Bcrypt library.","archived":true,"fork":false,"pushed_at":"2017-03-11T01:47:36.000Z","size":364,"stargazers_count":42,"open_issues_count":0,"forks_count":53,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-04-14T06:06:58.145Z","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/dwightwatson.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":"2012-07-30T04:19:11.000Z","updated_at":"2024-08-01T13:15:39.106Z","dependencies_parsed_at":null,"dependency_job_id":"d3f05c9a-a0d0-4e45-8084-c3c2c2fa4c0d","html_url":"https://github.com/dwightwatson/codeigniter-bcrypt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwightwatson%2Fcodeigniter-bcrypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwightwatson%2Fcodeigniter-bcrypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwightwatson%2Fcodeigniter-bcrypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwightwatson%2Fcodeigniter-bcrypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dwightwatson","download_url":"https://codeload.github.com/dwightwatson/codeigniter-bcrypt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247027940,"owners_count":20871625,"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-08-01T13:00:37.486Z","updated_at":"2025-04-03T15:31:27.877Z","avatar_url":"https://github.com/dwightwatson.png","language":"PHP","readme":"# codeigniter-bcrypt\n\n## DEPRECATION WARNING\n\nThis library is not maintained, and it is suggested that you don't use it. It was simply a CodeIgniter wrapper around the PHPPass library. Please look into using [PHP's native password hasing functions instead](https://secure.php.net/manual/en/function.password-hash.php).\n\n\n## Bcrypt (PHPPass) for CodeIgniter\n\nAdaption of PHPPass (0.3) for use as a CodeIgniter Bcrypt library.\n\nAllowed for the use of a separate config file, adjusted for some CodeIgniter configurability, added the scope of functions, changed hashing and checking functions to meet CodeIgniter standards for function names.\n\n## Installation\n\n* Place ``Bcrypt.php`` in your ``application/libraries`` folder.\n* Place ``bcrypt.php`` in your ``application/config`` folder.\n* Adjust options in the config file as neccessary.\n\n## Usage\nFirst, load the Bcrypt library or autoload it in ``config/autoload.php``.\n\n    $this-\u003eload-\u003elibrary('bcrypt');\n\n### Hashing\nTo hash a password, simply pass the string to ``hash_password()``.\n\n    $password = 'hunter2';\n    $hash = $this-\u003ebcrypt-\u003ehash_password($password);\n\nThe function will return the hashed password or ``*`` on error.\n\n### Checking\nTo check a hash password, simply pass the string and stored password to ``check_password()``.\n\n    $password = 'hunter2';\n    \n    if ($this-\u003ebcrypt-\u003echeck_password($password, $stored_hash))\n    {\n    \t// Password does match stored password.\n    }\n    else\n    {\n    \t// Password does not match stored password.\n    }\n    \nThe function will return ``TRUE`` or ``FALSE`` dependant on success.\n","funding_links":[],"categories":["Libraries"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwightwatson%2Fcodeigniter-bcrypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdwightwatson%2Fcodeigniter-bcrypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwightwatson%2Fcodeigniter-bcrypt/lists"}