Wednesday 18 September 2019

Generate release key hash for facebook login in android

     
keytool -exportcert -alias ALIAS_NAME-keystore KEY_STORE_PATH| OPEN_SSL_PATH  sha1 -binary | OPEN_SSL_PATH  base64

example-
keytool -exportcert -alias ReleaseKey-keystore D:\Android Workspace\MyApp.jks | "C:\bin\openssl.exe"  sha1 -binary | "C:\bin\openssl.exe"  base64


Open command prompt and set the JDK PATH then run the above command to generate the HASH KEY

C:\Program Files\Java\jdk-12.0.2\bin> keytool -exportcert -alias ReleaseKey-keystore D:\Android Workspace\MyApp.jks | "C:\bin\openssl.exe"  sha1 -binary | "C:\bin\openssl.exe"  base64

you will get generated KEY HASH.



If you find open SSL issue then
Please follow these step, I hope your key working properly:

Openssl is not recognized as an internal or external command


1 You will need OpenSSL. You can download the binary from openssl-for-windows project on Google Code.


2 Unzip the folder, then copy the path to the bin folder to the clipboard.
For example, if the file is unzipped to the location C:\Users\openssl-0.9.8k_X64, then copy the path C:\Users\openssl-0.9.8k_X64\bin

and paste this path in your above command.

 

10 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Indians are sports fans, and cricket is our national sport. Indian sports have recently developed significantly, moving away from traditional offline modes of involvement and toward more immersive tech innovations such as world777 fantasy sports.

    ReplyDelete
  4. Titanium Phone Case - TITanium-arts.com
    The titanium titanium sunglasses phone case, cost of titanium T-Titanium-arts.com offers the titanium build best quality of premium and affordable titanium pots and pans quality products. The titanium titanium nipple jewelry phone case comes in two versions

    ReplyDelete
  5. This is a great inspiring article. I am pretty much pleased with your good work. You put really very helpful information. Keep it up. You might also like adidas product tester

    ReplyDelete
  6. Good web site you have got here.. It’s hard to find quality writing like yours nowadays. Please see does starbucks take ebt

    ReplyDelete
  7. Kindle is the most popular online book reading device. Amazon is a famous American corporation that produces it. In 2007, the first Kindle was released. Since its release, the Amazon company's Kindle has made its way into the hearts of multiple users, which has made it the world's most renowned and celebrated e-reading platform.
    Read more: www.kindle.com/support

    ReplyDelete