zs1083339604/FaceWinUnlock-Tauri
一款基于 Tauri 框架开发的现代化 Windows 面容识别解锁增强软件。它通过自定义 Credential Provider (DLL) 注入 Windows 登录界面,结合前端 Vue 3 和后端 OpenCV 人脸识别算法,为用户提供类似 Windows Hello 的解锁体验。
FaceWinUnlock‑Tauri – A Windows face‑unlock tool built with Tauri
What it does
- Replaces the normal password prompt on Windows 10/11 with a face‑recognition step, mimicking the experience of Windows Hello but using any ordinary webcam.
- A custom Credential Provider DLL is injected into the Winlogon process. When the lock screen appears the DLL calls a Rust back‑end that runs OpenCV‑based face detection and matching.
- The front‑end (Vue 3 + Element Plus) lets users record faces, bind them to local or Microsoft accounts, configure retry timing, enable/disable liveness detection, and view logs.
Key components
| Layer | Technology | Role |
|---|---|---|
| UI | Vue 3 (Composition API), Pinia, Element Plus | Settings, face enrollment, status display |
| Core | Rust (Tauri) | Windows API calls, registry edits, DLL generation, SQLite storage |
| Face engine | OpenCV (Rust bindings) | Detect faces, compare features, optional liveness model (RGB) |
| Storage | SQLite 3 | Persists face templates, account bindings, encrypted passwords |
Main features
- Supports multiple faces per Windows account and multiple accounts per device.
- Optional liveness detection using a model from ModelScope (RGB‑only).
- Silent auto‑start, retry‑after‑failure, and customizable unlock‑delay.
- Logs and a “last‑frame capture” for failed attempts.
- One‑click uninstall script that removes the Credential Provider and cleans the database.
Safety notes
- The tool modifies the registry and the Winlogon process; a faulty DLL can prevent the login screen from appearing, potentially locking you out of Windows.
- It uses 2‑D face matching, which is less secure than Windows Hello’s infrared depth‑sensor approach and can be fooled by photos or video.
- The authors advise testing in a VM first and only using it on machines that do not store high‑value data.
Project status
- The repository contains source up to version 0.3.2, but the core Rust code has been removed and the project is now closed‑source (as of 2026‑03‑01). New releases will be posted as binaries with updated README files.
- Development continues with a roadmap that includes multi‑domain account support, encrypted credential storage, and further performance tweaks.
Who might find this useful?
- Developers or power users who want a face‑unlock experience on laptops without infrared cameras and are comfortable handling low‑level Windows tweaks.
- Researchers interested in how a custom Credential Provider can be built with Rust and Tauri.
Caution: Because the software directly interacts with Windows authentication, any deployment should be preceded by thorough backups and, ideally, testing on a non‑critical system.
Related
- Project
- Project
- Project
- Project