try { val info: PackageInfo = packageManager.getPackageInfo("패키지명", PackageManager.GET_SIGNATURES); for (signature in info.signatures) { val md: MessageDigest = MessageDigest.getInstance("SHA") md.update(signature.toByteArray()); Log.d("KeyHash:", Base64.encodeToString(md.digest(), Base64.DEFAULT)); } } catch (e: PackageManager.NameNotFoundException) { e.printStackTrace(); } catch (e: NoSuchAlgo..