title: Python inverse function of id(...) built-in function
body: <p>Is there a reverse or inverse of the <code>id</code> built-in function? I was thinking of using it to encode and decode string without taking too much time or having a lot of overhead like the <code>PyCrypto</code> library. The need for me is quite simple so I don't want to use <code>PyCrypto</code> for a simple encode and decode.</p>
  
  <p>Something like:</p>
  
  <pre><code>&gt;&gt;&gt; id("foobar")
  4330174256
  &gt;&gt;&gt; reverse_id(4330174256) # some function like this to reverse.
  "foobar"
  </code></pre>