A base64 key represents far lower entropy than `/dev/urandom`. A better solution:

  LC_ALL=C tr -dc '!@#$%^&*()_A-Z-a-z-0-9' < /dev/random | head -c32