sread() {
  printf '%s: ' "$2"
  # disable terminal printing while the user inputs their
  # password. POSIX 'read' has no '-s' flag which would
  # effectively do the same thing.
  stty -echo
  read -r "$1"
  stty echo

  printf '\n'
}
# sread pass "enter a password"
# echo "${pass}"
