surfstudio / flutter-otp-autofill

Made by Surf 🏄
Apache License 2.0
81 stars 43 forks source link

Regenerating App Signature #27

Closed karangadani closed 2 years ago

karangadani commented 2 years ago

Hi, I just wanted to know that is there any way to generate new signature of the application ?

Actually the problem with the once I got is that it contains a special character which is not accepted by the message service provider therefore startListenRetriever() is not working for me.

Any solution to this would be appreciated!.

zaharovroman commented 2 years ago

@karangadani The application signature is generated by PackageManager (https://developer.android.com/reference/android/content/pm/PackageManager) object by package name. After that the hash is generated by the standard SHA-256 algorithm by package name and signature from the previous step. And this hash is used to get the OTP code. So, we can't change this.

It would help us a lot if you answered:

  1. Which special character is contained in your hash?
  2. Did you check that the message service provider works correctly?
karangadani commented 2 years ago

@zaharovroman Thank you for your response.!

Actually I found a work around of this problem by my own. It's not an issue it was just a misunderstanding. 😅