Skip to content

Smart-Bee-Azerbaijan/strong-string-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🔏 Strong String Generator

Strong String Generator from Smartbee. Easy to use and can be used for strong passwords.

Install

With Composer

$ composer require smartbee/strong-string-generator

Normal usage

Install like normal class...

Usage

  $password = new Smartbee\StrongStringGenerator();
  echo $password->CreateStrongString();

  // Sample Output should be like cg^U*t{BD^6xzUgk+|YV@iPkh4

Default Variables

Class uses min-lenght as 26 charachters and uses alphabet set as ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789?#$!@`.~^&*-_+={}[]|()%. You can set max-lenght and character set when you call class. As Example

  $password = new Smartbee\StrongStringGenerator(13,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz");
  echo $password->CreateStrongString();

  // Sample Output should be like BrQSBFSPBcBcB

This class brought you by Smartbee