Security & Identity · zero-dependency · MIT

larzpassword_strength

Score password strength, honestly - no false confidence.

A real 0-4 score from length + character-class diversity, with an instant zero for anything on the well-known common-password list (no amount of length/complexity saves "password1"). label() turns the score into weak/fair/strong for a UI meter.

larzscript pkg install password_strength
View on GitHub →Learn the stack

What you get

Try it

import "password_strength" as pwstrength
print(pwstrength.score("hunter2"), pwstrength.label("hunter2"))
print(pwstrength.score("Tr0ub4dor&3"), pwstrength.label("Tr0ub4dor&3"))
print(pwstrength.label("password"))
Output
0 weak
3 fair
weak

Why it's in the Larz Stack

larzpassword_strength is a real Larzscript package (larzscript pkg install password_strength) - money-native, zero dependencies, the same language as the rest of the estate, not a separate Python runtime. It composes with the rest of the Larz Stack and the Larz framework.