Java – How to get SHA-1 key on Mac OS

keytool -exportcert -list -v \
-alias androiddebugkey -keystore ~/.android/debug.keystore

System asks your password. Type your password + “android”. For example type “mypasswordandroid”