title: Android facebook key hash
body: <p>after spending hours of figuring out how to sign an app (at last i used eclipse, and not the command line), i want to create a key hash to my app described <a href="https://developers.facebook.com/docs/guides/mobile/#android_key_hash" rel="nofollow noreferrer">here</a>.
  For this i have in the C:\Users\Family\workspace\MyKeys folder the created sample.keystore and the samplesigned.apk, as well as the keytool.exe and the jli.dll.</p>
  
  <p>In cmd.exe i navigated to C:\Users\Family\workspace\MyKeys and when i run this command:</p>
  
  <p><code>keytool -exportcert -alias samplekey -keystore sample.keystore</code> i get this jibberish:<img src="https://i.stack.imgur.com/sqFxp.png" alt="enter image description here">
  The samplekey is the alias of the key created in eclipse:</p>
  
  <p><img src="https://i.stack.imgur.com/OCjNX.png" alt="enter image description here"></p>
  
  <p>I download open ssl from <a href="http://gnuwin32.sourceforge.net/packages/openssl.htm" rel="nofollow noreferrer">here</a> and installed it into C:\Program Files\GnuWin32. Navigating here in the command line i tried this command: openssl -help, which resulted in a list of commands which means i installed it properly (i hope).</p>
  
  <p>Now i try this code:</p>
  
  <pre><code>C:\Users\Family\workspace\MyKeys&gt;keytool -exportcert -alias samplekey -keystore sample.keystore | c:\program files\gnuwin32\bin\openssl sha1 -binary | c:\program f
  iles\gnuwin32\bin\openssl base64
  </code></pre>
  
  <p>Error: <em>'c:\program' is not recognized as an internal or external command,
  operable program or batch file.</em></p>
  
  <p>I have also added C:\Program Files\GnuWin32\bin to the PATH in Environmental Variables.</p>
  
  <p>I'm kind of lost.</p>