Cirilla Documentations

  1. Home
  2. Docs
  3. Cirilla Documentations
  4. How to
  5. How to get SHA-1, SHA-256 from singing file?

How to get SHA-1, SHA-256 from singing file?

https://stackoverflow.com/questions/51845559/generate-sha-1-for-flutter-react-native-android-native-app

Option 1: If you are using an Android Studio or VS code:

Open VS code: Drag the “android” folder and drop it into Terminal

Copy:

./gradlew signingReport

Open Android Studio: Drag the “android” folder and drop it into Terminal

Copy:

./gradlew signingReport

Option 2: Get the SHA-1,SHA-256 for Command

Get the SHA-1,SHA-256 debug:

On Mac/Linux, use the following command:

keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android

On Windows, use the following command:

keytool -list -v -keystore "\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android

Get the SHA-1,SHA-256 release:

Step 1. Create an upload keystore

On Mac/Linux, use the following command:

keytool -genkey -v -keystore ~/upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload

On Windows, use the following command:

keytool -genkey -v -keystore %userprofile%\upload-keystore.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias upload

Step 2. Get the SHA-1,SHA-256 release

Copy the path to the file ” upload-keystore.jks “ just created in step 1:
Example( Mac ) : /Users/yourusernamehere/upload-keystore.jks

Example(Windows ) : C:\Users\yourusernamehere.android\upload-keystore.jks

On Mac/Linux, use the following command:

keytool -list -v -keystore "/Users/yourusernamehere/upload-keystore.jks" -alias upload

On Windows, use the following command:

keytool -list -v -keystore "C:\Users\yourusernamehere.android\upload-keystore.jks" -alias upload

Video Guide

Was this article helpful to you? Yes No

How can we help?