How to get SHA 1 and SHA 2 key in VS Code for Firebase Windows

How to get SHA 1 and SHA 2 key in VS Code for Firebase Windows

·

1 min read

We need SHA 1 and SHA 2 keys in Firebase to use phone authentication etc. Follow the steps given below to get SHA 1 key:

  1. Open Terminal / cmd

  2. Find path to .android file in your root folder. eg. path -> C:\Users\root.android

  3. Now replace the "path" (without double quotes) in the command below -> keytool -list -v -keystore "path"\debug.keystore -alias androiddebugkey -storepass android -keypass android

  4. after replacing it should look like this: -> keytool -list -v -keystore C:\Users\root.android\debug.keystore -alias androiddebugkey -storepass android -keypass android

sha key.PNG

  1. Now open new terminal in VS Code, paste this path and hit enter!

Congrats! You got your SHA 1 key.✔️ Like, Share and Comment below It's my first blog, hope it was helpful. Happy Coding!