fingerprintjs / fingerprintjs-ios

iOS library for device fingerprinting. Does not require server APIs to work, fully client-side operation. MIT license, no restrictions on usage in production.
https://fingerprint.com/github/
MIT License
87 stars 22 forks source link

Duplicate deviceID #51

Open danilone123 opened 3 weeks ago

danilone123 commented 3 weeks ago

Hi , I am having an issue with the deviceID generated by the library, is it possible that a deviceID generated by device A could have the same value as another one generated by device B ? thanks .

mgutski commented 1 day ago

Hi,

The device ID obtained through Fingerprinter::getDeviceId() is essentially a Keychain-backed identifierForVendor that is tied to the device. Such an identifier uniquely identifies a device to the app’s vendor, and so it is not possible for the two different devices to have the same ID.

However, opposite to the above, it is perfectly possible for the two devices to have the same device fingerprint, as obtained through Fingerprinter::getFingerprint(). For instance, given two iPhone 11s with the exact same specs, it is totally expected for the library to return the same stable (see fingerprint stability levels) device fingerprint for the two iPhones.

Hope this information will help you to clarify your concerns.