Sign in to Windows with an ordinary camera
English · 简体中文
LockFace adds a "face sign-in" option to the Windows sign-in screen. Press any key, and once your face is recognized you are on the desktop. A USB webcam or a laptop's built-in camera works — no dedicated infrared camera required.
- Runs locally. Face detection, matching and liveness checks all happen on your PC. Face data never leaves the machine, and no photos or videos are saved.
- Multi-angle enrollment. Front, left and right views.
- Camera on demand. The camera is activated only when recognition starts; the lock screen captures nothing while it waits.
- Local and Microsoft accounts. Accounts need a Windows sign-in password; the normal password sign-in path stays untouched.
- Bilingual interface. English and Simplified Chinese, chosen automatically from the system language or set manually.
You need Windows 10 21H2+ or Windows 11 (x64), a camera, and administrator rights. Recognition speed and reliability depend on your CPU, camera and lighting.
- Download
LockFaceSetup.exefrom Releases and install it. Keeping the default installation directory is recommended. - Run
LockFaceConsole.exeas administrator, read the privacy notice, then follow the prompts to capture your face and save your Windows account password. - Press
Win + Lto lock the screen, then press any key to start recognition.
If installation or recognition misbehaves, see troubleshooting (in Chinese) — it covers camera conflicts, log locations, Smart App Control blocks and more.
To uninstall, run the installer again and switch to its "Uninstall" page, or run the uninstaller; both remove the program and the saved face data.
LockFace signs you in through a Windows Credential Provider, which is why account credentials must be stored on the machine: account identifiers, face templates (feature vectors) and the encrypted Windows password. The password is protected by the SYSTEM service with Windows DPAPI in user scope, and the data directory grants access only to SYSTEM and Administrators.
Liveness detection on an ordinary camera uses two models, which lowers — but does not eliminate — the success rate of photo and screen-replay attacks. Password encryption does not hold up against a compromised SYSTEM account or offline full-disk attacks. Keep your account password, and do not rely on this software in high-security settings.
Privacy notice (English) · Privacy notice (Chinese, canonical) · Credential storage and protection (in Chinese)
The core is C++20; the installer is Go/Wails with a Vue frontend; the enrollment UI runs on WebView2. Inference is powered by ONNX Runtime. The deeper documentation is currently written in Chinese.
| Document | Contents |
|---|---|
| Development navigation (in Chinese) | code entry points, module boundaries, verification commands |
| Build guide (in Chinese) | compiling, model preparation, building the installer |
| Authentication service (in Chinese) | authentication flow and camera lifecycle |
| Windows clients (in Chinese) | lock screen and enrollment |
| Installer (in Chinese) | installing, upgrading and uninstalling |
| Model licenses (in Chinese) | model provenance and redistribution terms |
Issues and pull requests are welcome. When reporting recognition problems, please include your camera model, CPU, Windows version, lighting conditions and reproduction steps. Logs may contain account identifiers — redact them before submitting, and never upload passwords, face data or the credential database.
LockFace started from EthanZer0/FaceLogin and has been maintained independently since October 2026.
The project's own code is released under the MIT License, © 2026 Link2323 & EthanZer0. Third-party code and pretrained models keep their own licenses — see third-party notices and model licenses.
