In config.php is instanceid and passwordsalt stored: Configuration Parameters — Nextcloud latest Administration Manual latest documentation
I am sorry, but I don’t think this is possible without the passwordsalt and instanceid.
You could extract calendars and addressbooks with my script calcardbackup. Have a look at section „Does this work with a broken Nextcloud instance“ in the README of the script. You need your database credentials for this to work though.