Tested on Raspbian Stretch.
Never store your password as plain text on a Raspberry Pi file system. Generate a password hash
Take the 32 character long code and replace the X's in the password line of the template
Clear the command line history to remove a record of your password being typed into the terminal