Skip to content

Instantly share code, notes, and snippets.

View mohssineAboutaj's full-sized avatar

mohssine aboutaj mohssineAboutaj

View GitHub Profile
mohssineAboutaj / password_strength.php
Created April 6, 2019 15:45 — forked from bmcculley/password_strength.php
Check for password strength, password should be at least n characters, contain at least one number, contain at least one lowercase letter, contain at least one uppercase letter, contain at least one special character.
$password_length = 8;
function password_strength($password) {
$returnVal = True;
if ( strlen($password) < $password_length ) {
$returnVal = False;