GuardianUnivalle-Benito-Yucra 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of GuardianUnivalle-Benito-Yucra might be problematic. Click here for more details.
- GuardianUnivalle_Benito_Yucra/__init__.py +18 -0
- GuardianUnivalle_Benito_Yucra/dos_protection.py +6 -0
- GuardianUnivalle_Benito_Yucra/encryption.py +10 -0
- GuardianUnivalle_Benito_Yucra/malware_check.py +6 -0
- GuardianUnivalle_Benito_Yucra/utils.py +1 -0
- GuardianUnivalle_Benito_Yucra/web_protection.py +9 -0
- guardianunivalle_benito_yucra-0.1.0.dist-info/METADATA +12 -0
- guardianunivalle_benito_yucra-0.1.0.dist-info/RECORD +11 -0
- guardianunivalle_benito_yucra-0.1.0.dist-info/WHEEL +5 -0
- guardianunivalle_benito_yucra-0.1.0.dist-info/licenses/LICENSE +1 -0
- guardianunivalle_benito_yucra-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
""" Funciones principales """
|
|
2
|
+
# GuardianUnivalle_Benito_Yucra/__init__.py
|
|
3
|
+
|
|
4
|
+
from .encryption import encrypt_data, decrypt_data
|
|
5
|
+
from .web_protection import sanitize_input, check_csrf
|
|
6
|
+
from .dos_protection import rate_limiter
|
|
7
|
+
from .malware_check import scan_malware
|
|
8
|
+
|
|
9
|
+
def protect_app():
|
|
10
|
+
"""
|
|
11
|
+
Activa todas las protecciones de seguridad de forma automática.
|
|
12
|
+
"""
|
|
13
|
+
print("🔒 GuardianUnivalle-Benito-Yucra: Seguridad activada")
|
|
14
|
+
# Aquà podrÃamos llamar funciones automáticamente si queremos
|
|
15
|
+
# scan_malware()
|
|
16
|
+
# rate_limiter()
|
|
17
|
+
# sanitize_input()
|
|
18
|
+
# check_csrf()
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
""" Funciones de cifrado """
|
|
2
|
+
# GuardianUnivalle_Benito_Yucra/encryption.py
|
|
3
|
+
|
|
4
|
+
def encrypt_data(data: str) -> str:
|
|
5
|
+
"""Simulación de cifrado sencillo"""
|
|
6
|
+
return "".join(chr(ord(c)+3) for c in data)
|
|
7
|
+
|
|
8
|
+
def decrypt_data(data: str) -> str:
|
|
9
|
+
"""Simulación de descifrado sencillo"""
|
|
10
|
+
return "".join(chr(ord(c)-3) for c in data)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
""" Funciones auxiliares """
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# GuardianUnivalle_Benito_Yucra/web_protection.py
|
|
2
|
+
|
|
3
|
+
def sanitize_input(user_input: str) -> str:
|
|
4
|
+
"""Elimina caracteres peligrosos (simulación)"""
|
|
5
|
+
return user_input.replace("<", "<").replace(">", ">")
|
|
6
|
+
|
|
7
|
+
def check_csrf():
|
|
8
|
+
"""Simulación de protección CSRF"""
|
|
9
|
+
print("✅ CSRF check passed")
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: GuardianUnivalle-Benito-Yucra
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: LibrerÃa de seguridad automática para aplicaciones frontend y backend
|
|
5
|
+
Author-email: Benito Yucra <tu_email@dominio.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Requires-Python: >=3.8
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Dynamic: license-file
|
|
11
|
+
|
|
12
|
+
<!-- Información de la librerÃa -->
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
GuardianUnivalle_Benito_Yucra/__init__.py,sha256=oy-mVZKVEud0LQL5QMoKh7ts9XrWYbiZtlCcpiOXBTk,606
|
|
2
|
+
GuardianUnivalle_Benito_Yucra/dos_protection.py,sha256=JAY2D8LGOBKshyYWwKabB7p5HfaQi-zolwWpDURu93g,187
|
|
3
|
+
GuardianUnivalle_Benito_Yucra/encryption.py,sha256=1pSEDwp5bTe9lol7MJmObRMr_fLZ83PFv9kQ7-Pk6lM,342
|
|
4
|
+
GuardianUnivalle_Benito_Yucra/malware_check.py,sha256=lnUdx3hkLmQ4ZUgkqrqcP2dAELi0xGgQCIn-SZvQ8KE,202
|
|
5
|
+
GuardianUnivalle_Benito_Yucra/utils.py,sha256=7mriluJY8ygJR-j0xyhqrp8BUzu96c1mY75XGtKMzho,28
|
|
6
|
+
GuardianUnivalle_Benito_Yucra/web_protection.py,sha256=M-GyIkTNowhJwhXzZX7embU4BoJxOsHViSLGSJTT-ko,318
|
|
7
|
+
guardianunivalle_benito_yucra-0.1.0.dist-info/licenses/LICENSE,sha256=5e4IdL542v1E8Ft0A24GZjrxZeTsVK7XrS3mZEUhPtM,37
|
|
8
|
+
guardianunivalle_benito_yucra-0.1.0.dist-info/METADATA,sha256=vYtJs612u-DUDWDIHAWrHwr-MWVoFTI3iqlTvXL_fFA,375
|
|
9
|
+
guardianunivalle_benito_yucra-0.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
10
|
+
guardianunivalle_benito_yucra-0.1.0.dist-info/top_level.txt,sha256=HTWfZM64WAV_QYr5cnXnLuabQt92dvlxqlR3pCwpbDQ,30
|
|
11
|
+
guardianunivalle_benito_yucra-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!-- Licencia (MIT por ejemplo) -->
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
GuardianUnivalle_Benito_Yucra
|