{"id":22432186,"url":"https://github.com/normalhuman01/helper-password","last_synced_at":"2025-03-27T07:41:39.022Z","repository":{"id":212994351,"uuid":"732777089","full_name":"normalhuman01/helper-password","owner":"normalhuman01","description":"Helper Password","archived":false,"fork":false,"pushed_at":"2023-12-17T19:44:18.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T12:45:29.439Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/normalhuman01.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","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}},"created_at":"2023-12-17T19:43:19.000Z","updated_at":"2023-12-17T19:44:21.000Z","dependencies_parsed_at":"2023-12-17T20:57:40.381Z","dependency_job_id":null,"html_url":"https://github.com/normalhuman01/helper-password","commit_stats":null,"previous_names":["normalhuman01/helper-password"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/normalhuman01%2Fhelper-password","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/normalhuman01%2Fhelper-password/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/normalhuman01%2Fhelper-password/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/normalhuman01%2Fhelper-password/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/normalhuman01","download_url":"https://codeload.github.com/normalhuman01/helper-password/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245806000,"owners_count":20675291,"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-05T22:10:53.605Z","updated_at":"2025-03-27T07:41:39.003Z","avatar_url":"https://github.com/normalhuman01.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/terabytesoftw/helper-password\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://lh3.googleusercontent.com/D9TFw1F6ddPuheDc_tpNptTdvTg-FNNpjLSBN14X6Sc-3JDiOxfE67rEh4OZfygonx1tKei2b2DEOHDLjF6T3xl8e-rkEEPZeGqLTWcS_v2cBRlyo0vcZLDHG5ivSDGIWCsenbol=w2400\" height=\"50px;\"\u003e\n    \u003c/a\u003e\n    \u003ch1 align=\"center\"\u003eHelper Password\u003c/h1\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://packagist.org/packages/terabytesoftw/helper-password\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://poser.pugx.org/terabytesoftw/helper-password/v/unstable.svg\" alt=\"Unstable Version\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://travis-ci.org/terabytesoftw/helper-password\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://travis-ci.org/terabytesoftw/helper-password.svg?branch=master\" alt=\"Build Status\"\u003e\n    \u003c/a\u003e  \n    \u003ca href=\"https://scrutinizer-ci.com/g/terabytesoftw/helper-password/\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://scrutinizer-ci.com/g/terabytesoftw/helper-password/badges/build.png?b=master\" alt=\"Build Status\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://scrutinizer-ci.com/g/terabytesoftw/helper-password/\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://scrutinizer-ci.com/g/terabytesoftw/helper-password/badges/coverage.png?b=master\" alt=\"Build Status\"\u003e\n    \u003c/a\u003e    \n    \u003ca href=\"https://scrutinizer-ci.com/g/terabytesoftw/helper-password/?branch=master\" target=\"_blank\"\u003e\n     \t\u003cimg src=\"https://scrutinizer-ci.com/g/terabytesoftw/helper-password/badges/quality-score.png?b=master\" alt=\"Code Quality\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://scrutinizer-ci.com/code-intelligence\" target=\"_blank\"\u003e\n     \t\u003cimg src=\"https://scrutinizer-ci.com/g/terabytesoftw/helper-password/badges/code-intelligence.svg?b=master\" alt=\"Code Intelligence Status\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://codeclimate.com/github/terabytesoftw/helper-password/maintainability\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://api.codeclimate.com/v1/badges/9bbe65b6fda1abd74c2c/maintainability\" alt=\"Maintainability\"\u003e\n    \u003c/a\u003e\t\t\n\u003c/p\u003e\n\n\u003c/br\u003e\n\n### **DIRECTORY STRUCTURE:**\n\n```\nconfig/             contains application configurations\nsrc/                contains source files\ntests/              contains tests codeception for the web application\nvendor/             contains dependent 3rd-party packages\n```\n\n### **REQUIREMENTS:**\n\n- The minimum requirement by this project template that your Web server supports:\n    - PHP 7.2 or higher.\n\n### **INSTALLATION:**\n\n\u003cp align=\"justify\"\u003e\nIf you do not have \u003ca href=\"http://getcomposer.org/\" title=\"Composer\" target=\"_blank\"\u003eComposer\u003c/a\u003e, you may install it by following the instructions at \u003ca href=\"http://getcomposer.org/doc/00-intro.md#installation-nix\" title=\"getcomposer.org\" target=\"_blank\"\u003egetcomposer.org\u003c/a\u003e.\n\u003c/p\u003e\n\nYou can then install this extension using the following command composer:\n\n~~~\ncomposer require terabytesoftw/helper-password '^1.0@dev'\n~~~\n\nor add composer.json:\n\n~~~\n\"terabytesoftw/helper-password\":\"^1.0@dev\"\n~~~\n\n### **USAGE:**\n\n~~~\n\u003c?php\n\nuse terabytesoft\\helpers\\Password;\n\n// config params defaults config/helperpassword.php\n\n    // config default 3 - ARGON2DI - PHP \u003e= 7.3\n    'helper.password.algo' =\u003e 3, // 1 BCRYPT, 2 ARGON2I, 3 ARGON2DI\n    'helper.password.options' =\u003e [\n        'memory_cost' =\u003e 1\u003c\u003c17,\n        'time_cost'   =\u003e 3,\n        'threads'     =\u003e 4,\n    ]\n\n    /** \n     * config 2 - ARGON2I - PHP \u003e= 7.2\n     * 'helper.password.algo' =\u003e 2, // 1 BCRYPT, 2 ARGON2I, 3 ARGON2DI\n     * 'helper.password.options' =\u003e [\n     * 'memory_cost' =\u003e 1\u003c\u003c17,\n     * 'time_cost'   =\u003e 3,\n     * 'threads'     =\u003e 4,\n     * ]\n     **/\n\n    /**\n     * config 1 - BCRYPT\n     * 'helper.password.algo' =\u003e 1, // 1 BCRYPT, 2 ARGON2I, 3 ARGON2DI\n     * 'helper.password.options' =\u003e [\n     *   'cost' =\u003e 8,\n     * ]\n     **/\n\n// generate password ramdom\n\n$passwordrandom = $this-\u003epassword-\u003egenerate(8);\n\n// generate hash:\n\n$hash = $this-\u003epassword-\u003ehash(\n    $passwordrandom,\n    \\Yii::$app-\u003eparams['helper.password.algo'],\n    \\Yii::$app-\u003eparams['helper.password.options']\n);\n\n// validate password\n\n$this-\u003epassword-\u003evalidate($passwordrandom, $hash);\n~~~\n\n### **RUN TESTS CODECEPTION:**\n\n~~~\n// download all composer dependencies root project\n$ composer update --prefer-dist -vvv\n\n// run all tests with code coverage\n$ vendor/bin/codecept run unit --coverage-xml\n~~~\n\n### **WEB SERVER SUPPORT:**\n\n- Apache.\n- Nginx.\n- OpenLiteSpeed.\n\n### **DOCUMENTATION STYLE GUIDE:**\n\n[Style CI Documentation PSR2.](https://docs.styleci.io/presets#psr2)\n\n### **LICENCE:**\n\n[![License](https://poser.pugx.org/terabytesoftw/helper-password/license.svg)](LICENSE.md)\n[![YiiFramework](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=flat)](https://www.yiiframework.com/)\n[![Total Downloads](https://poser.pugx.org/terabytesoftw/helper-password/downloads.svg)](https://packagist.org/packages/terabytesoftw/helper-password)\n[![StyleCI](https://github.styleci.io/repos/195531459/shield?branch=master)](https://github.styleci.io/repos/195531459)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnormalhuman01%2Fhelper-password","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnormalhuman01%2Fhelper-password","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnormalhuman01%2Fhelper-password/lists"}