title: How to convert SHA-1 to 28-character string ( For FB Login in Android App)
body: <p>FB login is working in APKs generated with debug,release build and app installed from Play Store on MotoG4(i use it for app testing). But FB login isn't working in app downloaded from Play Store(All Android Devices Except the MotoG4 i use for app testing). 
  The error says </p>
  
  <blockquote>
    <p>"The key hash does not match any stored key hashes"</p>
  </blockquote>
  
  <p>I can not log the error as it doesn't appear on my MotoG4 device. </p>
  
  <p>I have a added Development Key Hash &amp; Release Key Hash in FB Developer Console.</p>
  
  <p><a href="https://i.stack.imgur.com/9kwZi.jpg" rel="nofollow noreferrer">Development Key Hash &amp; Release Key Hash</a></p>
  
  <p>I have enabled app signing on play store also.
  <a href="https://i.stack.imgur.com/n2ORq.jpg" rel="nofollow noreferrer">app signing play store</a></p>
  
  <p>I found an article where one of the suggestion is to add play store signing SHA-1 in FB Developer console <a href="https://medium.com/@akashmahali/facebook-login-google-sign-in-not-working-on-android-app-in-production-5febd9537f92" rel="nofollow noreferrer">medium link</a></p>
  
  <p>Google Provides three kind of certificate fingerprints(SHA-1,MD5 &amp; SHA-256) but none matches the required in FB developer console. FB developer console only accept 28-character string. Is there anyway i can convert the SHA-1 to 28-character string? </p>