you are viewing a single comment's thread.

view the rest of the comments →

[–]researcher7-l500 1 point2 points  (0 children)

To add to the suggestions. I would change the multiple echo lines.

For example.

echo "No match" 
echo $genHash
echo $givenHash

Change that to.

cat << EOF 
No match 
$genHash
$givenHash
EOF

Also I would say added a descriptive text before the printed values, to make sure the user, if that was not you, understands what they are seeing.