How can I generate a hash key on macOS? According to the instructions on the website https://developers.facebook.com/docs/facebook-login/android/ I entered into the console: keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64. Then I entered the password "android" and wrote to me: The certificate uses the SHA1withRSA signature algorithm which is considered a security risk. This algorithm will be disabled in a future update. How to get a key?
CodePudding user response:
Due to collision resistance of SHA-1 has been SHAttered, You can use more secure strategy sha256
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha256 -binary | openssl base64