2가지 방법이 있다.
1. 첫번째 방법
In order to generate key hash you need to follow some easy steps.
1) Download Openssl from: here.
2) Make a openssl folder in C drive
3) Extract Zip files into this openssl folder created in C Drive.
4) 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)
5) Open command prompt and give the path of JDK Bin folder in my case (C:\Program Files\Java\jdk1.6.0_05\bin).
6) Copy the following code and hit enter
keytool -exportcert -alias androiddebugkey -keystore debug.keystore > c:\openssl\bin\debug.txt
7) Now you need to enter password, Password = android.
8) If you see in openssl Bin folder, you will get a file with the name of debug.txt
9) Now either you can restart command prompt or work with existing command prompt
10) get back to C drive and give the path of openssl Bin folder
11) copy the following code and paste
openssl sha1 -binary debug.txt > debug_sha.txt
12) you will get debug_sha.txt in openssl bin folder
13) Again copy following code and paste
openssl base64 -in debug_sha.txt > debug_base64.txt
14) you will get debug_base64.txt in openssl bin folder
15) open debug_base64.txt file Here is your Key hash.
http://stackoverflow.com/questions/5306009/facebook-android-generate-key-hash
2. 두번째 방법
첫번째 방법에서 openssl을 설치 후
debugkey
keytool -exportcert -alias androiddebugkey -keystore <debug_keystore_path> -storepass android -keypass android | openssl sha1 -binary | openssl base64
releasekey
keytool -exportcert -alias <release_key_alias> -keystore <release_keystore_path> | openssl sha1 -binary | openssl base64
'프로그래밍 > Android' 카테고리의 다른 글
Android ExpandableListView (0) | 2015.02.05 |
---|---|
Android create keyhash from debug.keystore and release.keystore (0) | 2015.01.30 |
Android about Alarmmanager... (0) | 2015.01.19 |
Eclipse Contacting software sites has encountered a problem (0) | 2014.11.26 |
Android File folder delete (0) | 2014.11.23 |
댓글