title: How to generate the HashKey from command line for SMS Retriver api
body: <p>I am trying to use the SMS Retriver API suggested by google.
  The code worked when i used the <a href="https://github.com/googlesamples/android-credentials/blob/master/sms-verification/android/app/src/main/java/com/google/samples/smartlock/sms_verify/AppSignatureHelper.java" rel="nofollow noreferrer">java Helper Class</a> to generate the HashKey.</p>
  
  <p>The Broadcast was detected properly.
  But When i used the <a href="https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string" rel="nofollow noreferrer">Keytool command suggested here</a></p>
  
  <p>i get a different hashkey and it does not work either.</p>
  
  <p>Note. 
  I have executed the command from gitbash and windows command prompt
  the generated hashkey is the same.</p>
  
  <p>UPDATE</p>
  
  <p>So Far After some tests i have only managed to confirm one thing</p>
  
  <p>The HashKey generated for a locally installed apk either by debug or by copying the signed apk to device <strong>IS DIFFERENT</strong> than the one generated after it is uploaded to playstore.</p>
  
  <p>On top of this i am still not able to use the keytool command to generate the Hashkey. The command fails near the pipelining of echo statement.</p>
  
  <p>Has anyone managed to generate the hashkey from command line.</p>
  
  <p>Any suggestions are appriciated.</p>