0

I'm trying to generate key hash code for android on (Windows 8.1 PRO 64x) according to these steps Android key hash for Facebook App. I did it before and worked well but was for windows 8, now I followed all the steps and the hash code I got was this.

Imgur

Any suggestions how to solve it or what is this ??

Mohamed Usama
  • 99
  • 2
  • 12

1 Answers1

0

You can have your hash in a easier way, like in the offical Facebook's documentation.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // Add code to print out the key hash
    try {
        PackageInfo info = getPackageManager().getPackageInfo(
                "com.facebook.samples.hellofacebook", 
                PackageManager.GET_SIGNATURES);
        for (Signature signature : info.signatures) {
            MessageDigest md = MessageDigest.getInstance("SHA");
            md.update(signature.toByteArray());
            Log.d("KeyHash:", Base64.encodeToString(md.digest(), Base64.DEFAULT));
            }
    } catch (NameNotFoundException e) {

    } catch (NoSuchAlgorithmException e) {

    }

    ...
}
yugidroid
  • 6,570
  • 2
  • 26
  • 45