title: Reverse engineering Javascript behind Google+ button
body: <p>I am trying to simulate google+ button.In Somepart of code at <a href="http://pastebin.com/QabqCrxk" rel="noreferrer">LINK</a>,It converts the session id into Some kinda hash.What i found is session id name is SAPISID and the converted hash name is SAPISIDHASH , Can anyone tell me which part of code does the hash part . Any help will be appreciated.i have spent 6 hours straight , still no clue :(</p>
  
  <p>For Example <code>VUOyLIU22fNPz2ko/AbGsxW03_WHoGjaJq is SAPISID</code> and <code>f17aa630b9b9a105dad437b0fedcafe429f6fca2 is SAPISIDHASH</code> . In php i tried all kind of hash..nothing matches.</p>