Модульная библиотека для анализа, защиты и валидации данных
Project description
SecurityCore 🔐
SecurityCore — это модульная библиотека на Python для анализа, защиты и валидации данных.
Она создана как набор "артефактов безопасности", которые можно использовать в любых проектах: от веб‑приложений до инфраструктурных сервисов.
✨ Возможности
- crypto_utils — хэширование (SHA256, MD5), генерация ключей и токенов, симметричное шифрование (Fernet).
- input_sanitizer — очистка ввода, защита от XSS и SQL‑инъекций.
- validators — проверка email, URL, телефонов, паролей и IP‑адресов.
- password_analyzer — анализ паролей, определение уровня надёжности и рекомендации.
- audit_logger — аудит событий и логирование действий.
🚀 Установка
pip install securitycore
(или клонируй репозиторий и установи локально)
git clone https://github.com/mihhail327/SecurityCore.git
cd SecurityCore
pip install -r requirements.txt
🧪 Тестирование
SecurityCore покрыт тестами с использованием pytest.
Запуск тестов:
pytest -v
📊 Пример использования
from securitycore.crypto import crypto_utils
from securitycore.protection import input_sanitizer
from securitycore.validation import validators
# Хэширование
print(crypto_utils.hash_sha256("mypassword"))
# Очистка ввода
data = "<script>alert('XSS')</script>"
print(input_sanitizer.sanitize_input(data))
# Валидация email
print(validators.is_valid_email("user@example.com"))
📜 Лицензия
Проект распространяется под лицензией MIT.
🛡️ Автор
Разработано Mihhail327 — архитектор систем и создатель SecurityCore.
Каждый модуль — это артефакт, каждая документация — кодекс.
SecurityCore — твой набор инструментов для защиты и анализа данных.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file securitycore-0.1.1.tar.gz.
File metadata
- Download URL: securitycore-0.1.1.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0897e7dab48a0689af79943d530cc45151aaf56af540932b7a69ecf2cd20565d
|
|
| MD5 |
c87e6df05abba194438a6723bc22ba9b
|
|
| BLAKE2b-256 |
607c9338bfb770ce3ec7d2b2b0de7e7f6aa5b61272d7f919bf3ac90b4b4098a3
|
File details
Details for the file securitycore-0.1.1-py3-none-any.whl.
File metadata
- Download URL: securitycore-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fca6cfc70fea7cadc94bd3e8bf5a8e5b2e9a59c0ee875a4980b2d89065ff61a9
|
|
| MD5 |
a86073513f311621ca0fdbf1e5805409
|
|
| BLAKE2b-256 |
3389e17951df66b5a75ea2df99ce7e09ab794020d50cd5d5cb412fd3e6c7597f
|