code: def _CheckLegacyPassword(self, password):
      
      # This import will fail on Windows.
      import crypt  # pylint: disable=g-import-not-at-top
      salt = self._value[:2]
      return crypt.crypt(password, salt) == self._value
docs: Check password with legacy crypt based method.