maatify/admin-portal-handler

1.1.0119 2024-11-18 11:48 UTC

README

Current version Packagist PHP Version Support Monthly Downloads Total Downloads Stars

PostValidatorJsonCode

maatify.dev Admin Portal Handler, known by our team

Installation

composer require maatify/admin-portal-handler

Important

Don't forget to use \App\DB\DBS\DbConnector;

Don't forget to use \App\DB\DBS\DbLogger;

Don't forget to use \App\DB\DBS\DbPortalHandler;

Don't forget to use \App\DB\DBS\DbProjectHandler;

Don't forget to use \App\Assist\AppFunctions

Don't forget to use \App\Assist\Encryptions

Don't forget to use \App\Assist\Jwt

Don't forget to use \App\Assist\OpensslEncryption

Don't forget to use \App\DB\Tables\Language\LanguagePortalRecord

Don't forget to use \App\Assist\DefaultPassword

namespace App\Assist;

use Maatify\Functions\GeneralPasswordGenerator;

class DefaultPassword
{
    private static self $instance;

    public static function obj(): self
    {
        if (empty(self::$instance)) {
            self::$instance = new self();
        }

        return self::$instance;
    }

    public static function GenerateAdminDefaultPassword(): string
    {
        $password = GeneralPasswordGenerator::passwordGenerator(16, GeneralPasswordGenerator::allCharacters());
        return $password;
    }

    public static function GenerateCustomerDefaultPassword(): string
    {
        $password = GeneralPasswordGenerator::passwordGenerator(13, GeneralPasswordGenerator::allCharacters());
        return $password;
    }
}