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.main

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.2.tar.gz (10.4 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.2-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: authipy-0.0.2.tar.gz
  • Upload date:
  • Size: 10.4 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.2.tar.gz
Algorithm Hash digest
SHA256 de6fa08e3e665340cd8ee5e4e860f2e9470328b23a600ac2bff3d4b73f96832f
MD5 72f3f95666bbb2f6b4f42d84bfd1e37b
BLAKE2b-256 8768ff19b8ff2b2e9acc2b265e332bbe79bfeb322c039dac98b2a65ddb49b34c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: authipy-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e48c813fcb2dd0bacffb607ad5e3ffc0061817617db631e132ef4dfe502cf92a
MD5 2f82b36119803cac9a0bb6698f170dd4
BLAKE2b-256 4f52c5da0094e28a80d46282fb874bc89a5b849601daca2a6290883df3506170

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