... Hence using Code: if [ ! "$passhash" = "$encpass" ]; then there and three lines above would make the password comparison always correctly fail ...
if [ ! "$passhash" = "$encpass" ]; then
... Then you may also leave Backup-Menus's code as it is. ...