HashingAlgorithmMigration.php
Interfaces, Classes and Traits
- HashingAlgorithmMigration
- Wraps every `legacy` password hash in a fresh native hash (the "onion"), protecting dormant accounts at rest against a future breach without needing the plaintext. Idempotent and reusable: it only touches rows still on the `legacy` scheme, so re-running (or running after some users have already logged in and been upgraded) is safe and does no redundant work.