Second Password is a web-based two-factor authentication (2FA) solution that implements Time-based One-time Password (TOTP) for secure user authentication. All passwords are end-to-end encrypted and synced to the cloud, meaning your data is encrypted before it leaves your device and can only be decrypted by you. This makes your TOTP secrets accessible from any device while maintaining maximum security.
git clone https://github.com/viperadnan-git/second-password.git
cd second-password
pip install -r requirements.txt
.env file or set the variables in your system):| Variable | Type | Default | Required | Description |
|---|---|---|---|---|
| SECRET_KEY | string | UUID4 | No | Flask secret key used for session management |
| SITENAME | string | "Second Password" | No | Name of the site displayed in UI |
| DATABASE_URL | string | None | No | PostgreSQL database URL. If not set, SQLite will be used |
| SQLITE_PATH | string | "user.db" | No | Path to SQLite database file (only used if DATABASE_URL not set) |
| HOST | string | "0.0.0.0" | No | Host address to bind the server to |
| PORT | integer | 8000 | No | Port number to run the server on |
Example .env file:
To run the development server:
python -m src
The application will be available at http://localhost:8000
docker build -t second-password .
docker run -p 8000:8000 -e SECRET_KEY=your_secret_key_here second-password
captain-definition fileThe application supports both SQLite and PostgreSQL:
user.db in root directoryDATABASE_URL environment variable:DATABASE_URL=postgresql://user:password@localhost:5432/dbname
SECRET_KEY in environment variablesThis project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)Adnan - @viperadn - [email protected]
Project Link: https://github.com/viperadnan-git/second-password
Content type
Image
Digest
sha256:edaa6896f…
Size
29.2 MB
Last updated
over 1 year ago
docker pull viperadnan/second-password