PHP code example of paulinhosupriano / passwordcryptphp
1. Go to this page and download the library: Download paulinhosupriano/passwordcryptphp library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
paulinhosupriano / passwordcryptphp example snippets
aulinhoSupriano\passwordCryptPHP;
// criar uma senha codificada
$passwordCodify = (Password::crypt('123456'));
aulinhoSupriano\passwordCryptPHP;
$passwordCodify = (Password::crypt('123456'));
// verificar
if(Password::check('123456',$passwordCodify)){
return 'Passou!';
}else{
return 'Não Passou.';
}
aulinhoSupriano\passwordCryptPHP;
// gerar senha aleatória [Padrão 8 Dígitos]
$passwordGenerate = Password::randomPassword(); // gera com 8 digitos
// gerar com quantidade especifica.
$passwordGenerateLimit = Password::randomPassword(12); // gera com 12 digitos