Last active
April 4, 2024 21:47
-
-
Save ottosch/a80f993a08eb76dbc35bb4df72db847a to your computer and use it in GitHub Desktop.
Outputs apk's signing certificate hash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# print with colons | |
keytool -printcert -jarfile apk_file 2>/dev/null | grep SHA256 | cut -f2- -d':' | tr -cd '[[:xdigit:]]:'; echo | |
# print without colons | |
keytool -printcert -jarfile apk_file 2>/dev/null | grep SHA256 | cut -f2- -d':' | tr -cd '[[:xdigit:]]'; echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment