PHP Classes

Secure Passwords Generator: Generate random text to use as passwords

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 35%Total: 151 All time: 9,078 This week: 36Up
Version License PHP version Categories
passwords-generator 1.0Freely Distributable5.0PHP 5, Text processing
Description 

Author

This class can be used to generate random text to use as passwords.

It generates a string with random characters of a set that may include upper and lower letters, digits and symbols.

The security level parameter defines the length of the generated password.

The code and examples are in Portuguese.

In Portuguese:

Classe para gerar senhas seguras para fornecer s usuários.

Configure o arquivo config.php dentro do diretório config para obter senhas mais seguras.

Picture of Vinicius Teixeira Souza
  Performance   Level  
Name: Vinicius Teixeira Souza <contact>
Classes: 2 packages by
Country: Brazil Brazil

Example

<?php
   
include_once 'config/config.php';
    include_once
'class/senha.class.php';
?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>SENHAS SEGURAS / SECURE PASSWORDS</title>
    </head>
    <body>
        <?php
           
/*
             * Declarãção do objeto
             * Declaration of object
             */
           
$ob = new Passwords();

           
/*
             * Chamadas de métodos
             * Call of methods
             */
           
echo $ob->generatePassword($NIVEL_SEGURO) . "<br>";
            echo
$ob->generatePassword($NIVEL_MUITO_SEGURO) . "<br>";
            echo
$ob->generatePassword($NIVEL_SUPER_SEGURO) . "<br>";
            echo
$ob->generatePassword($NIVEL_SEGURO_EXTREMO) . "<br>";
       
?>
</body>
</html>


Details

=============================================================== Criado por Vinícius Teixeira em 06/03/2015 Iturama-MG/Brasil Created for Vinícius Teixeira at 03/06/2015 Iturama-MG/Brazil =============================================================== LEIA-ME CLASSE SENHAS - GERE SENHAS SEGURAS PARA SEU USUÃRIO. CONFIGURE O ARQUIVO "config.php" DENTRO DO DIRETÓRIO "config/" PARA OBTER AINDA MAIS SEGURANÇA EM SUAS SENHAS. READEME CLASS PASSWORDS - GENERATE PASSWORD SAFE FOR YOUR USER. SET FILE "config.php" DIRECTORY IN "config /" FOR EVEN MORE SAFETY IN YOUR PASSWORD. =============================================================== ESTE ARQUIVO PODE SER ADAPTADO E DISTRIBUÃDO DE FORMA GRATÚITA. THIS CAN BE ADAPTED AND FILE FORM OF DISTRIBUTED FREE. ===============================================================

  Files folder image Files (6)  
File Role Description
Files folder imageclass (1 file)
Files folder imageconfig (1 file)
Accessible without login Plain text file READEME.txt Lic. Arquivo de Documentação e Licença de Conteúdo
Accessible without login Plain text file README Data Arquivo de Licença de Uso
Accessible without login Plain text file test.php Example Arquivo de Demonstração
Accessible without login Plain text file teste.php Example Arquivo que demonstra o uso da classe

  Files folder image Files (6)  /  class  
File Role Description
  Plain text file senha.class.php Class Classe geradora das senhas

  Files folder image Files (6)  /  config  
File Role Description
  Accessible without login Plain text file config.php Conf. Classe de configurações gerais de segurança

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 66%
Total:151
This week:0
All time:9,078
This week:36Up
User Ratings User Comments (1)
 All time
Utility:50%StarStarStar
Consistency:50%StarStarStar
Documentation:-
Examples:50%StarStarStar
Tests:-
Videos:-
Overall:35%StarStar
Rank:4171