agens-no / EllipticCurveKeyPair

Sign, verify, encrypt and decrypt using the Secure Enclave
Other
708 stars 114 forks source link

concern about userPresence #57

Closed Lawati97 closed 3 years ago

Lawati97 commented 3 years ago

The code is

EllipticCurveKeyPair.Device.hasSecureEnclave ? [.userPresence, .privateKeyUsage] : [.userPresence]

Will it be able to handle text passcode or should it be only Numeric value? (Other than FaceID if valid)

hfossli commented 3 years ago

Whatever the system supports. If the users phone is configured with FaceId it will try that first - if that fails it will fallback to pin/text/passcode. If not enrolled it will try pin/text/passcode directly. It supports both simple numeric pin and text as passcode.

Lawati97 commented 3 years ago

because I tried using an Alphateic Passcode (Device Password for an IOS) and all of a sudden the face ID did not work