title: how to compress uuid and timeuuid?
body: <p><a href="https://en.wikipedia.org/wiki/Universally_unique_identifier" rel="nofollow noreferrer"><strong>uuid</strong></a> or Universally unique identifier and <a href="https://stackoverflow.com/questions/2614195/in-cassandra-terminology-what-is-timeuuid"><strong>timeuuid</strong></a> are long 128-bit value.</p>
  
  <p>In Cassandra database and because of its concepts I used <strong>uuid</strong> and <strong>timeuuid</strong> for our entities identifier and now I want to compress <strong>uuid</strong> and <strong>timeuuid</strong> or reduce its size when client (user) can see the id in the URL bar.</p>
  
  <p>For example Twitter also used Cassandra but when you open a Tweet, the Tweet's id is like <code>10153967535312713</code> but a simple <strong>uuid</strong> is like <code>10646334-2c02-11e6-bb4a-7720eb141b83</code> that is more characters and not user friendly <em>(of course both IDs are not user friendly :D)</em></p>
  
  <p>In different programming languages there are some compression functions, such as <a href="http://php.net/manual/en/function.gzcompress.php" rel="nofollow noreferrer">gzcompress</a> in PHP and <a href="https://docs.oracle.com/javase/7/docs/api/java/util/zip/GZIPOutputStream.html" rel="nofollow noreferrer">GZIPOutputStream</a>  in Java but these functions (classes) will compress data and return in GZIP format which is not allowed to use in URL!</p>
  
  <p>Now just by the way is there any way or function/algorithm to get smaller or compressed version of a uuid or timeuuid? </p>