There is no way provided by whatsapp. Only backups are encrypted if you access /data/data/com.whatsapp/databases/msgstore.db on your devices, it’s just a SQLite database that you can access directly through the Android Java application or push it from the device and access it using any other language on the computer.
To access the file, you must run it, but there is no need to decrypt the database if you want to avoid this particular problem by accepting a real database instead of a backup file.
Hello,
source
share