Useful to hash password in bash scripts in a passwordfile?

Hi @all,

sometimes you need a password in your bash script.
My question is, it is more secure to hash the password in your script?
Anyone can make a screenshot of the password that is with this method not possible.
any benefits for this?

pls look at this how to

thx for reading