From /. comments:
> I suspect the OP did not verify the exact wording. The law requires retention of (among other things) "mot de passe ou données permettant de le vérifier ou de le modifie" (password or data to verify it or change it) so it seems that it would be enough to store the password hash and/or do a password reset when demanded by the law enforcement guys.