https://github.com/gennadis/twopasswords
TUI password manager with face recognition
https://github.com/gennadis/twopasswords
cui face-recognition password-manager py-cui python sqlcipher tui
Last synced: about 1 month ago
JSON representation
TUI password manager with face recognition
- Host: GitHub
- URL: https://github.com/gennadis/twopasswords
- Owner: gennadis
- License: mit
- Created: 2021-10-16T12:40:09.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-26T12:23:16.000Z (almost 2 years ago)
- Last Synced: 2025-08-27T07:41:59.228Z (5 months ago)
- Topics: cui, face-recognition, password-manager, py-cui, python, sqlcipher, tui
- Language: Python
- Homepage:
- Size: 1.21 MB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TwoPasswords
[](https://pypi.org/project/twopasswords)
[](https://raw.githubusercontent.com/gennadis/twopasswords/main/LICENSE)
TwoPasswords is a simple Python password manager, that uses Face Recognition as a second factor.
It allows you to securely save account credentials with a simple TUI interface.

## Features
- Account credentials stored locally in an encrypted SQLite database with [SQLCipher](https://www.zetetic.net/sqlcipher/)
- Passwords can be passed to Clipboard
- Passwords can be generated in [XKCD style](https://xkcd.com/936/)
- Import and Export in JSON
## Basic Usage
To start using TwoPasswords, you have to register your face and enter your new Master Password.
## Installation notes
1. TwoPasswords requires `cmake` to be installed on your machine.
```bash
pip3 install cmake
```
2. TwoPasswords requires `sqlcipher` to be installed on your machine.
On MacOS, you can install it with [brew](https://brew.sh/):
```bash
brew install sqlcipher
pip3 install sqlcipher3==0.4.5
# If you are getting an error "Failed to build sqlcipher3", you would need to fix the build flags:
SQLCIPHER_PATH="$(brew --cellar sqlcipher)/$(brew list --versions sqlcipher | tr ' ' '\n' | tail -1)"
C_INCLUDE_PATH=$SQLCIPHER_PATH/include LIBRARY_PATH=$SQLCIPHER_PATH/lib pip3 install sqlcipher3==0.4.5
```
3. Also you need to install latest ffmpeg library for a latest OpenCV version
```bash
brew install ffmpeg
```
### Installing via PyPI
```bash
pip3 install twopasswords
# Run setup
twopasswords
```
### Installing via cloning this project
```bash
# Clone project
git clone https://github.com/gennadis/twopasswords.git
cd twopasswords
# Installation
python3 setup.py install
# Run setup
twopasswords
```