title: Compute hash value of other application on device
body: <p>I am building an Android application that needs to keep track of some of the other applications installed on the device.</p>
  
  <p>For a given application (package) I need to compute a hash values such that:</p>
  
  <ul>
  <li>The value is different for different versions of the same application</li>
  <li>The value is the same for the same version of the same application installed on different devices</li>
  </ul>
  
  <p>Is there a way of doing this efficiently?</p>
  
  <p>Thank you</p>