Smart 2FA Security System v0.2.4
Advanced Two-Factor Authentication system with enhanced security features.
Key Security Features
-
Complex Code Generation:
- Supports ASCII letters, digits and special characters
- Customizable code length (default: 6)
-
Flexible Expiration:
- Adjustable TTL (Time-To-Live) for codes
- Default 60 seconds expiration
-
📱 Secure Delivery:
- Telegram integration with customizable message templates
⚠️ Disclaimer
By using this software, you agree to the full disclaimer terms.
Summary: Software provided "AS IS" without warranty. You assume all risks.
Full legal disclaimer: See DISCLAIMER.md
Installation
pip install smart-2fa-secure
Advanced Usage
from smart_2fa_secure import Smart2FA
from smart_2fa_secure.exceptions import InvalidCodeError
smart_2fa = Smart2FA(
redis_host="localhost",
redis_port=6379,
telegram_token="YOUR_BOT_TOKEN",
code_ttl=60,
max_attempts=3,
code_length=6,
)
code = smart_2fa.send_code(user_id="user1", recipient="1234567", message="Your code:")
# Verify with complex code
try:
smart_2fa.verify_code("user123", "A1b2@#")
print("Authentication successful!")
except InvalidCodeError:
print("Invalid security code!")
Information for developers:
-
pip install pytest -
pip install pytest-cov -
pip install setuptools -
pip install wheel -
pip install build -
pip install twine -
pytest tests/ -v -
pytest tests/ -v --cov=smart_2fa_secure --cov-report=html -
python -m buildorpython setup.py sdist bdist_wheel -
twine upload dist/*
License
BSD 3-Clause License: See file LICENSE
Copyright (©) 2025, Alexander Suvorov
Tests & Coverage
Metadata
Release files for smart-2fa-secure 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| smart_2fa_secure-0.2.4.tar.gz | 8.7 kB | Without provenance | Details for smart_2fa_secure-0.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| smart_2fa_secure-0.2.4-py3-none-any.whl | Python 3 | none | any | Details for smart_2fa_secure-0.2.4-py3-none-any.whl |
Total release size: 22.4 kB
Release files / smart_2fa_secure-0.2.4.tar.gz
| Download URL | smart_2fa_secure-0.2.4.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fc700ea3939705df4f648a5ba01ed3704640cab9bcddbc4877fac5561ecb6bd5
|
|
BLAKE2b-256 checksum How to use checksums |
1858b5cea26e8577eca110dc753644102556f7a873f7770807a6ccf57df1515f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / smart_2fa_secure-0.2.4-py3-none-any.whl
| Download URL | smart_2fa_secure-0.2.4-py3-none-any.whl |
|---|---|
| Size | 13.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
87ff0efaed956c4fd6f53b373bab9eeea3d9f351b9ca62bfd0d4b95c88c345bb
|
|
BLAKE2b-256 checksum How to use checksums |
5da4f248e0874b6476a39e046deb27c318cbe781836a2b0ba478a31e40ede8d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for smart-2fa-secure 0.2.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.