It will be a better option to store password using secret service agent like gnome keyring or keepassxc.