def get_available_storage_encryption_versions(self) -> Sequence[StorageEncryptionVersion]:
        """Returns the type of storage encryption offered to the user.

        A wallet file (storage) is either encrypted with this version
        or is stored in plaintext.
        """
        out = [StorageEncryptionVersion.USER_PASSWORD]
        if isinstance(self.keystore, Hardware_KeyStore):
            out.append(StorageEncryptionVersion.XPUB_PASSWORD)
        return out
Returns the type of storage encryption offered to the user.

        A wallet file (storage) is either encrypted with this version
        or is stored in plaintext.
        
electrum/wallet.py