안드로이드

[android] releasekey 코드로 얻기

여미미 2021. 4. 15. 17:05

puch-android.tistory.com/6

 

[Android] SNS 로그인 키해시(key hash) 추출

SNS 로그인 연동시 확인해야 할 키해시는 아래와 같이 총 3가지가 필요하다. - debug key hash - release key hash - google app signing key hash 디버그모드 (개발자 테스트)용으로 로그인 확인할 때는 debug ke..

puch-android.tistory.com

참고한블로그

    private void getReleaseHashKey() {
        byte[] sha1 = {
                (byte)0xDA, (byte)0x22, (byte)0xD9,  (byte)0x0D, (byte)0xBD, (byte)0x8F,
                (byte)0xC6, (byte)0xC4, (byte)0xB8, (byte)0x1E, (byte)0xCE, (byte)0xE6,
                (byte)0x57, (byte)0x1D, (byte)0xFB, (byte)0x64, (byte)0x19, (byte)0x3D,
                (byte)0xF6, (byte)0x8C};


//        Log.i(StringUtil.TAG, "getReleaseHashKey: " + Base64.encodeToString(sha1, Base64.NO_WRAP));
    }