Monday, February 11, 2019

How to get key hash from .apk to interactions with Facebook

Key hashed are 28 characters that Facebook uses to authenticate interactions between your app and the Facebook app. Today I will show you how to get key hashes from .apk file.

1. Rename *.apk to *.zip and then extract



















2. Run keytool command to get key hash
Open C:\Program Files\Java\jdk1.8.0_191\bin (depend on your pc, where you install jdk)




















Type CMD -> Enter




















Type command as below (remember change your file path).
keytool -printcert -file "C:\Users\TUNG NGUYEN\Desktop\365Casino\META-INF\CERT.RSA"


And we have




















3. Convert SHA1 to base64 we will have key hash (you can use only tool http://tomeko.net/online_tools/hex_to_base64.php?lang=en )

No comments:

Post a Comment