selfsimilar/laravel-d7-password
D7Password) and a service provider, requiring minimal changes to existing Laravel auth logic (e.g., AuthenticatesUsers trait). Existing Hash or Hasher interfaces can be extended to delegate Drupal 7 hashes.password column in users table).Hash facade changes).user_hash_password(), which combines MD5, SHA-1, and a site-specific salt. This is not considered secure by modern standards (e.g., vulnerable to rainbow tables). Critical: Only use this for legacy systems or temporary migrations. Replace with bcrypt/argon2 post-migration.bcrypt but may still impact auth performance if used at scale. Benchmark under load.$account->user_hash_salt) stored/retrieved? Is it configurable in Laravel?Auth system? Will it replace or supplement the default Hasher?Illuminate\Auth\Passwords\PasswordBroker to handle Drupal 7 hashes.Auth stack via custom Hasher or User model logic. Example:
// In User model
public function validatePassword($password) {
return D7Password::check($password, $this->password);
}
Hash facade for Drupal 7-specific operations.D7Password as a singleton, enabling dependency injection.password columns storing Drupal 7 hashes.D7Password to test auth logic without Drupal 7 dependencies.make()/check() functions with known Drupal 7 hashes.User model or Auth logic to use D7Password for legacy users.provider field to users to route auth to the correct hasher.bcrypt hashes (default Laravel).bcrypt using:
$user->password = Hash::make($user->plain_password);
$user->save();
Hash facade updates).D7Password behind an interface).$settings['hash_salt']. Store this in Laravel’s .env:
D7_PASSWORD_SALT=your_drupal_7_salt_here
$S$... prefix).D7Password in a feature branch.make()/check() in isolation.Auth system.composer.json to avoid surprises..env and Drupal 7 config.var_dump($user->password) to confirm format.Hasher interfaces).How can I help you explore Laravel packages today?