infinum / Android-Goldfinger

Android library to simplify Biometric authentication implementation.
Apache License 2.0
653 stars 73 forks source link

how to get my fingerprint code? #40

Closed ghopretz closed 5 years ago

ghopretz commented 5 years ago

how to get my fingerprint code when i tap fingerprint sensor in my android phone using this library?

domagojkorman commented 5 years ago

Could you please elaborate what do you mean by 'Fingerprint code'?

ghopretz commented 5 years ago

binary code of user fingerprint, when users touch fingerprint sensor. is this library generate an unique code of every user fingerprint?

domagojkorman commented 5 years ago

I am still not sure what you are trying to ask.

The library works in steps: 1) Start fingerprint with given input - Cipher & CryptoObject are initialized 2) User authenticates fingerprint - Cipher & CryptoObject are unlocked 3) Crypto interface uses unlocked CryptoObject to encrypt or decrypt given input 4) Received output is encrypted/decrypted input

If you don't need encrypted/decrypted input, you can use authenticate call to just verify user's Fingerprint.

mirceanis commented 5 years ago

@ghozien the fingerprint sensor does not expose any "fingerprint code" to the apps or operating system. From a very high level, you can think of it as providing "match"/"no match" signals for fingerprints that it knows about but there's no way to get fingerprint data out of the sensor, nor any unique code that can be tied to that particular data.

domagojkorman commented 5 years ago

@mirceanis thank you for your response.

Closing this as it seems this was not an issue in the end.