title: Is it safe to turn a UUID into a short code? (only use first 8 chars)
body: <p>We use UUIDs for our primary keys in our db (generated by php, stored in mysql). The problem is that when someone wants to edit something or view their profile, they have this huge, scary, ugly uuid string at the end of the url. (edit?id=.....)</p>
  
  <p>Would it be safe (read: still unique) if we only used the first 8 characters, everything before the first hyphen?</p>
  
  <p>If it is NOT safe, is there some way to translate it into something else shorter for use in the url that could be translated back into the hex to use as a lookup? I know that I can base64 encode it to bring it down to 22 characters, but is there something even shorter?</p>
  
  <p>EDIT
  I have read <a href="https://stackoverflow.com/questions/1302057/cutdown-uuid-further-to-make-short-string">this question</a> and it said to use base64. again, anything shorter?</p>