this can be done using dietpi-config
. But it will not change existing software installations.
In case of DietPi Dashboard, you would need adjust /opt/dietpi-dashboard/config.toml
manually. Within configuration file, you have a section for password configuration and some hints on how to adjust.