Skip to main content

2FA Authenticator

Project description

Authipy

License: MIT

A secure and user-friendly 2FA (Two-Factor Authentication) code generator built with Python and PyQt5. Authipy helps you manage your two-factor authentication codes in a simple desktop application.

Authipy Screenshot

🚀 Features

  • TOTP Code Generation: Generate time-based one-time passwords (TOTP) compatible with most 2FA services
  • QR Code Support: Import accounts by scanning QR codes or display QR codes for easy transfer
  • Account Management:
    • Add, edit, and delete 2FA accounts
    • Recycle bin for deleted accounts
    • Support for custom issuer names
  • User-Friendly Interface:
    • Clean and intuitive PyQt5-based GUI
    • Copy codes with a single click
    • Automatic code refresh
  • Security:
    • Local storage only - your secrets never leave your device
    • Encrypted storage of authentication secrets
    • No internet connection required

📋 Requirements

  • Python 3.8 or higher
  • PyQt5
  • Other dependencies are handled automatically during installation

🔧 Installation

From PyPI (Recommended)

pip install authipy

From Source

  1. Clone the repository:
git clone https://github.com/TanmoyTheBoT/authipy.git
cd authipy
  1. Install dependencies:
pip install -r requirements.txt
  1. Install in development mode:
pip install -e .

🎮 Usage

Launch the Application

authipy

Or if installed from source:

python -m authipy

Adding a New Account

  1. Click the "Add Account" button
  2. Enter the required information:
    • Website/Service name
    • Secret key (provided by the service)
    • Issuer name (optional)
  3. Click "Add" to save the account

Generating Codes

  1. Select an account from the list
  2. The current TOTP code will be displayed automatically
  3. Click the code to copy it to clipboard
  4. A timer shows when the code will refresh

Managing Accounts

  • Delete: Right-click an account and select "Delete" or use the delete button
  • Restore: Access the recycle bin from the menu to restore deleted accounts
  • QR Code: Select an account and click "Show QR Code" to display/hide the QR code

🧪 Development

Setting Up Development Environment

  1. Install development dependencies:
pip install -r requirements-dev.txt

Running Tests

pytest

For test coverage report:

pytest --cov=src --cov-report=html

🤝 Contributing

Contributions are welcome! Here's how you can help:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Run the tests to ensure everything works
  5. Commit your changes (git commit -m 'Add some amazing feature')
  6. Push to the branch (git push origin feature/amazing-feature)
  7. Open a Pull Request

Please make sure to update tests as appropriate and follow the existing code style.

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • PyOTP for TOTP implementation
  • PyQt5 for the GUI framework
  • PyQRCode for QR code generation

📬 Contact

Tanmoy - @TanmoyTheBoT

Project Link: https://github.com/TanmoyTheBoT/authipy

📊 Project Status

This project is actively maintained and welcomes contributions. Check the issues page for feature requests and bug reports.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

authipy-0.0.1.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

authipy-0.0.1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file authipy-0.0.1.tar.gz.

File metadata

  • Download URL: authipy-0.0.1.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for authipy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c9ee29eaf2e3c7c65b7ecdc7462e2eb0cc3637f21ec62be4ab0a077fd182f204
MD5 05172f57fd1bb8faae0aa802586fc010
BLAKE2b-256 6c74b187757ccd99dc51c6946792e03e5503c2bdb07c6c635a98f9bc1bdab18a

See more details on using hashes here.

File details

Details for the file authipy-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: authipy-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for authipy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f2519cd9ead0a1eb712ecd40d145ab0a8342b56f777ce9706acb71b4941cce86
MD5 a85f9d0682c40c63de9e1509dd0ef31d
BLAKE2b-256 f067937d5ebe366ada5066532f56d1c0eb3a2a873cf1cd5ee11f653f83d607dd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page