hackzilla/password-generator
Hackzilla Password Generator is a PHP library for creating secure random passwords. Configure length and character sets, or generate memorable word-based passwords. Framework-agnostic, with an optional Laravel integration.
Xk9#mQ2!.Adopt when:
Look elsewhere, or do due diligence first:
Str::password(). For plain random strings you have a first-party, maintained implementation. The only differentiated reason to add this package is pronounceable/human-memorable output.random_bytes(); older PHP password libraries leaned on mt_rand() or openssl_random_pseudo_bytes(). If it is not cryptographically secure, disqualify it for anything user-facing — this is a hard gate, not a nice-to-have.password_hash/Laravel's hasher), and WebAuthn/FIDO2.To executives: This is a small, MIT-licensed utility that removes a recurring security weakness — weak or guessable temporary credentials handed out during onboarding and admin resets — for a handful of integration hours and zero license cost. It is not a strategic investment and should not be framed as one: password generation is a solved, commoditized problem, and we will isolate the dependency so it can be swapped out in an afternoon if it goes unmaintained. Low cost, low risk, modest but real risk reduction.
To engineering: Drop-in PHP library, pin the version, and wrap it behind our own PasswordGenerator contract so we can fall back to Laravel's Str::password() or an internal implementation without touching call sites. Two non-negotiable guardrails before merge: confirm the generator draws from random_bytes(), and ensure generated values are never written to logs, traces, or error reports. Use it only where pronounceable output is genuinely better than random — otherwise prefer the first-party helper we already have.
How can I help you explore Laravel packages today?