[Android/Java] Key Hash 로그에 찍기
try { PackageInfo info = getPackageManager().getPackageInfo(getPackageName(), 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 (Exception e) { }Release Key Hash를 찍으려면Release때 로그를 찍도록 설정해줘야 한다(보안에 매우 ..