Encryption of passwords used for external storage

Hi,

are usernames and passwords (credentials) used for accessing external storage encrypted in the database? I host nextcloud on a shared hosting provider and don’t want any admin to potentially steal access to my other services.

I know that at some point in the process the credentials must be decrypted, but I hope this will only happen in memory. And that’s a risk I can take.

Thanks,
Max