Hi friends i wanna to generate Key hash to incorporate FaceBook Application in my Apps.. I am having Open SSL Zip. pl guide me how to generate key..
Type this in your terminal (mac)
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64
Or this into the console (windows)
keytool -exportcert -alias androiddebugkey -keystore %HOMEPATH%\.android\debug.keystore | openssl sha1 -binary | openssl base64
You will have to enter a password. The password is: android
A code will come up and that code is your key hash.
In order to generate key hash you need to follow some easy steps.
Download Openssl from: http://code.google.com/p/openssl-for-windows/downloads/list
Make a openssl folder in C drive
Extract Zip files into openssl folder
Copy the File debug.keystore from .android folder in my case (C:\Users\SYSTEM.android) and paste into JDK bin Folder in my case (C:\Program Files\Java\jdk1.6.0_05\bin)
Open command prompt and give the path of JDK Bin folder in my case (C:\Program Files\Java\jdk1.6.0_05\bin).
Copy the code and hit enter
keytool -exportcert -alias androiddebugkey -keystore debug.keystore > c:\openssl\bin\debug.txt
Now you need to enter password, Password = android.
See in openssl Bin folder you will get a file with the name of debug.txt
Now either you can restart command prompt or work with existing command prompt
comes to C drive and give the path of openssl Bin folder
copy the following code and paste openssl sha1 -binary debug.txt > debug_sha.txt
you will get debug_sha.txt in openssl bin folder