Ocean Kayak Prowler Big Game II Fishing Kayak

Key hash for Facebook Android SDK –

Development issue/problem:

I can’t figure out how to get the hash of the keys needed to use the Facebook Android SDK. I realized I can use the keys with these commands:

key tool -exportcert -alias [alias] -keystore [keystore] | openssl sha1 -binary | openssl enc -a -e

The only problem is that I don’t know where to put it, I tried the windows command (win7) and tried to open the keytool.exe file.

How can I solve this problem?

Solution 1:

  1. Download OpenSSL from http://slproweb.com/products/Win32OpenSSL.html and install it on Windows 32 or 64 bit. (Note: also download and install the first Visual C++ 208 from this page).
  2. Place the bin directory of the installed OpenSSL in the Windows path.
  3. Open a command prompt and navigate to C:Users{User_Name}.android
  4. Now put this command in keytool -exportcert -alias androiddebugkey -keystore debug.keyystore | openssl sha1 -binary | openssl base64 (see https://developers.facebook.com/docs/android/getting-started#samples).
  5. Now enter your Facebook password without quotes.
  6. The hash key
  7. Finally, go to the website of the Facebook developer. Make sure you are logged into Facebook and go to Developer Settings in the drop-down menu at the top right:
  8. After logging in to the developer settings, select Application Preview in the left navigation and add a hash key to your profile and save it:
    enter the image description here

Solution 2:

You can install Open SSL here to make your order work

Solution 3:

I created a batch script facebookkeydebug.bat that returns the desired hash of the Facebook keys. Edit the script, define the correct paths and the name of the keyboard and execute it.

:: Get the Android keychain for the Facebook application on Windows
: Condition: OpenSSL for Windows (http://code.google.com/p/openssl-for-windows/downloads/list)
: Usage : Create paths and run facebookkeydebug.bat

See also  Good Habits of Customer Service Managers

@echo Export keyboard certificate
-exportcert -alias androiddebugkey -keystore C:Usersmyusername.androiddebug.keyystore -storepass android -keypass android > debug.keyystore.bin

@echo conversion to sha1
C:PROGRAMSopenssl-0.9.8k_X64binopenssl sha1 -binary debug.keystore.bin > debug.keyystore.sha1

@echo Convert to base64
C:PROGRAMSopenssl-0.9.8k_X64binopenssl base64 – from debug.keyystore.sha1

@echo Done, Android hashtag for the Facebook application:
C:PROGRAMMA’Sopenssl-0.9.8k_X64binopenssl basis64 – in debug.keyystore.sha1

EDIT: I published a repo with some batch scripts to sign and retrieve certificate keys on Windows: https://github.com/petrnohejl/Android-Scripts.

Solution 4:

you can use the code below to get a hash key:


PackageInfo info = getPackageManager().getPackageInfo(getPackageName(), PackageManager.GET_SIGNATURES) ;

for (Signature: info.signature)
MessageDigest md = MessageDigest.getInstance(SHA);
Log.d(KeyHash:, Base64.encodeToString(md.digest(), Base64.DEFAULT));

} catch (NameNotFoundException e) {
Log.e(Name not found, e.toString());
} catch (NoSuchAlgorithmException e) {
Log.e(No algorithm, e.toString());

Reference :


Solution No 5:

To make it easy.

keytool.exe list -alias androiddebugkey -keystore debug.keyystore -v

This should enable you to obtain the necessary fingerprints without having to install openssl.

inter alia

Fingerprints of the certificate :
MD5 : 1A: 5E: AA: CB: 1A: CF: 68: F0: 8B: DA: D8: BC: EE: 4F: BF: EE
SHA1 : D2:89:D1:5A:BC:F8:E3:E5:62:4D:DD:20:DD:96:CD:AB:51:A1:C1:7F
Signature algorithm name : SHA1 with the RSA
version: 3

Solution No 6:

Here is an example of how to get a key hash from a key shop:

We have to find ways first:

Java Way:
C:Program FilesJavajdk1.6.0_35jrebin

Open Path SSL :

(Installation from: http://www.openssl.org/)

Away from the key bearing:

2) Then go to the command line and type :

CD-ROM [Java path]

3) then go inside:

keytool.exe -exportcert -alias [alias name] -keystore [keystore path
] debug.keyystore [open SSL path] openssl sha1 -binary [open SSL path
] binopenssl base64

4) You need to enter your Key Store password, and you will have a hash key associated with your Android Key Store.

See also  How TO ERR_CONNECTION_RESET Chrome Error [100% Fix]

Give here a description of the image

This is a document about setting up a hash key for Facebook:


Solution No 7:

You must open a command line window. Go to the Start menu>Run, type cmd and press Enter. Then navigate to the folder where the keyboard tool is located (if it is not in your path) and enter this command.

That is, assuming the command is for Windows and not for Linux.

Solution No 8:

It is preferable to generate the key hash using :

public static blank generatedKeyHash(Context context) {
try {
PackageInfo info = context.getPackageManager(
for (Signature: info.signature) {
MessageDigest md = MessageDigest.getInstance(SHA);
Log.d(KeyHash:, Base64.encodeToString(md.digest(), Base64.DEFAULT));
} catch (PackageManager.NameNotFoundException e) {

capture (NoSuchAlgorithmException e) {


call this method once and generate a hash key, you’ll appreciate

Solution No 9:

C:Program FilesJavajdk1.6.0_22binkeytool.exe -exportcert -alias typeYouraliasname -keystore location of your keystore | C:OpenSSL-Win32binopenssl sha1 -binary | C:OpenSSL-Win32binopenssl base64

Good luck!

Related Tags:

invalid key hash facebook android,facebook-android sdk github,fb_login_protocol_scheme,fbsdk analytics,facebooksdk fullyinitialize,generate key hash facebook android ubuntu,sha1 to key hash converter,what is android hash,get hashkey in android,app hash android,convert sha1 to key hash online,sha1 to base64 converter,sha1 to base64 for facebook,rrw++lujmzz+58ebn5dvhgankx4=,flutter facebook hash key,choices invalid key hash,invalid key hash facebook android unity,facebook hash key for signed apk,key hash does not match,how to get key hash for facebook android programmatically,how to generate release key hash for facebook in android studio,generate key hash facebook android windows,sha1 to key hash,generate key hash from sha1,how to generate key hash for facebook in android in mac

See also  Best Games About Japanese Culture –