I'm curious what usage secnario you have in mind where that's a serious concern?
But besides that, you could run it in a podman container and use the secrets feature. That will not only store the password slightly safer, it will sandbox the executable from the rest of your system.