Check Password Strength

Check if a password meets strength requirements (8+ chars, uppercase, lowercase, number, special).

Code

General
import re
return bool(re.match(r'^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$', password))

Parameters

Password to check

Server

More Python Snippets