{"id":14974593,"url":"https://github.com/techtailor/rpg","last_synced_at":"2025-08-19T08:11:38.053Z","repository":{"id":57066259,"uuid":"119680526","full_name":"TechTailor/RPG","owner":"TechTailor","description":"Random Password Generator for Laravel 5, 6, 7, 8, 9, 10 \u0026 11.","archived":false,"fork":false,"pushed_at":"2025-01-25T13:32:54.000Z","size":41,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-15T23:55:03.137Z","etag":null,"topics":["hacktoberfest","laravel","laravel-10-package","laravel-5-package","laravel-6-package","laravel-7-package","laravel-9-package","laravel55","password-generator","php","random-generation","random-password","random-password-generator","random-string-generator","rpg","rpg-facade","string-generator"],"latest_commit_sha":null,"homepage":"https://rpg.gits.moinuddin.dev","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/TechTailor.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":"contributing.md","funding":".github/FUNDING.yml","license":"license.md","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},"funding":{"github":"TechTailor"}},"created_at":"2018-01-31T11:50:33.000Z","updated_at":"2025-01-25T13:32:58.000Z","dependencies_parsed_at":"2025-02-12T12:42:44.740Z","dependency_job_id":"44c90337-7fc6-4051-8694-db560c5c7496","html_url":"https://github.com/TechTailor/RPG","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/TechTailor/RPG","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechTailor%2FRPG","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechTailor%2FRPG/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechTailor%2FRPG/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechTailor%2FRPG/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TechTailor","download_url":"https://codeload.github.com/TechTailor/RPG/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechTailor%2FRPG/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271121168,"owners_count":24702723,"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","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["hacktoberfest","laravel","laravel-10-package","laravel-5-package","laravel-6-package","laravel-7-package","laravel-9-package","laravel55","password-generator","php","random-generation","random-password","random-password-generator","random-string-generator","rpg","rpg-facade","string-generator"],"created_at":"2024-09-24T13:50:47.305Z","updated_at":"2025-08-19T08:11:38.030Z","avatar_url":"https://github.com/TechTailor.png","language":"PHP","readme":"![](https://banners.beyondco.de/Random%20Password%20Generator.png?theme=light\u0026packageName=TechTailor%2FRPG\u0026pattern=topography\u0026style=style_2\u0026description=Generate+random+configurable+strings+to+be+used+as+passwords.\u0026md=1\u0026fontSize=100px\u0026images=lock-closed)\n\n\n[![GitHub release](https://img.shields.io/github/release/techtailor/rpg.svg?style=for-the-badge\u0026\u0026colorB=7E57C2)](https://packagist.org/packages/techtailor/rpg)\n[![GitHub issues](https://img.shields.io/github/issues/TechTailor/RPG.svg?style=for-the-badge)](https://github.com/TechTailor/RPG/issues)\n\u003cimg src=\"https://img.shields.io/badge/StyleCI-passed-green.svg?style=for-the-badge\u0026\u0026colorB=FF69B4\"\u003e\n[![Software License](https://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge\u0026\u0026colorB=F27E40)](license.md)\n[![Total Downloads](https://img.shields.io/packagist/dt/techtailor/rpg.svg?style=for-the-badge)](https://packagist.org/packages/techtailor/rpg)\n[![Twitter](https://img.shields.io/twitter/url/https/github.com/TechTailor/RPG.svg?style=social)](https://twitter.com/intent/tweet?text=Wow:\u0026url=https%3A%2F%2Fgithub.com%2FTechTailor%2FRPG)\n\nThis package is a simple Laravel untility that allows you to generate complex passwords using a simple Facade.\n\n## Installation\n\n### Step 1: Install Through Composer\n\n```bash\n$ composer require techtailor/rpg\n```\n\n### Step 2: Add the Service Provider (Skip this step for Laravel 5.5 or higher)\n\nIn the 'config/app.php' file -\n\n```php\n'providers' =\u003e [\n    // ...\n    TechTailor\\RPG\\RPGServiceProvider::class,\n];\n```\n\n### Step 3: Add the Alias (Skip this step for Laravel 5.5 or higher)\n\nIn the 'config/app.php' file -\n\n```php\n'aliases' =\u003e [\n    // ...\n    'RPG' =\u003e TechTailor\\RPG\\Facade\\RPG::class,\n];\n```\nIn Laravel 5.5 \u0026 higher the package will autoregister the service provider and the alias.\n\n## Usage\n\nIn order to use the included RPG Facade, import the following in your file\n\n```php\nuse TechTailor\\RPG\\Facade\\RPG;\n```\n\n### The RPG Facade comes with three basic methods - ``Generate``, ``Preset`` and ``Decrypt``\n\nThe ``Generate`` method allows you to pass custom specifications for the generator. \n\n```php\n RPG::Generate($character, $size, $dashes, $encrypt);\n```\nLets go into a bit detail about each of the specifications that can be provided\n\n```bash\n$character \n//Accepts a string of letters called \"luds\"\n//Where \u003e l is for lowercase alphabets\n        \u003e u is for uppercase alphabets\n        \u003e d is for digits\n        \u003e s is for special characters'\n//The combination of these letters will provide the character set for the generator. Ex: 'ld' will only generate string with lowercase alphabets and digits.\n```\n```bash\n$size\n//The total size/lenght of the string your want to generate. \n//Ex : 15 - will generate a string of total 15 characters using the character set your selected\n```\n```bash\n$dashes (defaults to 0)\n//Two options - 0 or 1\n//Using '1' - will add multiple dashes (-) randomly within the string generated.\n```\n```bash\n$encrypt (defaults to 0)\n//Two options - 0 or 1\n//Using '1' - will return you an encrypted version of the password. Can be decrypted using RPG::Decrypt.\n```\nExample command for generating a password string of 16 characters with dashes using the 'lud (lowercase, uppercase, digits)' character set -\n```bash\nreturn RPG::Generate('lud',16,1); //Result: 37vX-zerT-weSa-vCC3\n```\nExample command for generating an encrypted password string of 16 characters with dashes using the 'lud (lowercase, uppercase, digits)' character set -\n```bash\nreturn RPG::Generate('lud',16,1,1); \n\n//Result: eyJpdiI6IjdTK3ZmMGZXNXl2a2xQSU1sNVhKZEE9PSIsInZhbHVlIjoiK1NxcTdUbVF3Q2dqSGVcL0JFKzRHR3VWNm5NWUdUNDY0dEFnOFN0S2JDdVk9IiwibWFjIjoiODEwMjIwOTBiNjBiOWRhMjJlNTliNGY0NzEyNDFjNmJkODIwZmFhMjMyY2IzOThkMzRmMTcyZGZkMjk1ZmUwYiJ9\n```\n\nThe ``Preset`` method allows you to instantly select from any of the 4 preset specifications for the generator. You can also ad the encrypt modifier to the Preset method aswell for returning an encrypted Preset String.\n\n```php\n RPG::Preset($preset); //Where $preset value can be 1, 2, 3 or 4.\n or\n RPG::Preset($preset,1); // For encrypting the result before returning it.\n```\nDetails of each preset -\n```bash\n Preset - 1\n //Character Set = 'ld' //Size = 8  //Dashes = 0 (Dashes Not allowed)\n //Sample Result: cn3hvphy\n Preset - 2\n //Character Set = 'lud' //Size = 8  //Dashes = 0 (Dashes Not allowed)\n //Sample Result: 4sCFwNr8\n Preset - 3\n //Character Set = 'luds' //Size = 12  //Dashes = 0 (Dashes Not allowed)\n //Sample Result: r\u0026$EQx1#USbw\n Preset - 4\n //Character Set = 'luds' //Size = 16  //Dashes = 1 (Dashes Allowed)\n //Sample Result: 1Z2h-F\u0026?C-x$Tg-KEA8\n Preset - 5\n //Character Set = 'luds' //Size = 32  //Dashes = 1 (Dashes Allowed)\n //Sample Result: 1Z2h-F\u0026?C-x$Tg-KEA8-a2E3-E$#e-@#we-12@2\n```\n\nThe ``Decrypt`` method allows you to decrypt any string/password encrypted by passing the encrypt modifier to the Generate or Preset method. Note : Only passwords encrypted by your laravel app can be decrypted.\n\n```php\n return RPG::Decrypt($encrypted);\n ```\n \n### Important Note\nThe passwords are encrypted using the Laravel App Key (which can be found in your .env file). If you change/modify your Laravel App Key, you will no longer be able to decrypt any previously encrypted strings.\n\nWell that should be enough to get you up and running in no time. \n\n## Demo Site\n\nYou can check out the live demo of this package at [rpg.gits.moinuddin.dev](https://rpg.gits.moinuddin.dev)\n\n## Changelog\n\nPlease see [CHANGELOG](changelog.md) for more information what has changed recently.\n\n## TODO\n\nList of features or additional functionality we are working on (in no particular order) -\n\n```bash\nNothing on the TODO List.\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](contributing.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email hello@moinuddin.info instead of using the issue tracker.\n\n## License\n\nThe MIT License (MIT). Please see [License File](license.md) for more information.\n","funding_links":["https://github.com/sponsors/TechTailor"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechtailor%2Frpg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechtailor%2Frpg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechtailor%2Frpg/lists"}