# ENABLE SCREEN LOCK WITH A PASSCODE / PATTERN / FINGERPRINT (ANDROID / IPHONE)

The goal of this lock is to ensure that no one can physically use your smartphone. _In addition, on Android, this enables device encryption._

* The lock must be activated immediately after the phone goes to sleep (by pressing the button).
* The lock must be activated within a very short period of inactivity, i.e., less than a minute.
* Unlocking the phone will require entering a code (consisting only of digits), a pattern (3x3), or your fingerprint.

Android: [Link](https://support.google.com/android/answer/9079129?hl=en) iPhone: [Link](https://support.apple.com/en-us/HT204204)

### WHICH PROTECTION TO CHOOSE?



* The PIN code should be long (more than 4 characters) and complex (avoid birthdays, numerical sequences like 1234, etc.) to offer adequate resistance.
* The pattern seems to be a good compromise, although, unfortunately, similar patterns are often used (like the pyramid, snail, "L"). However, it has the advantage of better resistance to social engineering.
* Fingerprint recognition seems to be, in my opinion, the most secure solution. It is unique, and although there are ways to create "copies" under normal circumstances, it is unlikely that you would be subjected to this type of attack.

### MAXIMUM NUMBER OF TRIES



Unless there are specific reasons, there is no need to make 5, 10, or 30 mistakes with the unlock code. There are several protections, such as:

* Factory reset of the device.
* Destruction of encryption keys.
* Increasing the delay before attempting a new code.

Android: [Link](https://www.hexnode.com/forums/topic/wipe-device-password-failed-attempts/) iPhone: [Link](https://www.imobie.com/iphone-unlocker/how-many-attempts-to-unlock-iphone.htm) iPhone: [Link](https://appleinsider.com/articles/22/03/04/how-to-have-your-iphone-erase-all-data-after-10-failed-passcode-attempts-in-ios-15)
