cfdf515228
- .claude/CLAUDE.md - .claude/commands/subagentes.md - .claude/rules/INDEX.md - .mcp.json - bash/functions/cybersecurity/analyze_dns.md - bash/functions/cybersecurity/audit_http_headers.md - bash/functions/cybersecurity/audit_ssh_config.md - bash/functions/cybersecurity/check_firewall.md - bash/functions/cybersecurity/detect_suspicious_users.md - bash/functions/cybersecurity/encrypt_file.md - ... Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
37 lines
849 B
Markdown
37 lines
849 B
Markdown
---
|
|
name: hash_md5
|
|
kind: function
|
|
lang: py
|
|
domain: cybersecurity
|
|
version: "1.0.0"
|
|
purity: pure
|
|
signature: "def hash_md5(data: bytes) -> str"
|
|
description: "Calcula el hash MD5 de datos binarios. Retorna hex digest."
|
|
tags: [hash, md5, crypto, python, pendiente-usar]
|
|
uses_functions: []
|
|
uses_types: []
|
|
returns: []
|
|
returns_optional: false
|
|
error_type: ""
|
|
imports: [hashlib]
|
|
params:
|
|
- name: data
|
|
desc: "bytes a ser hasheado"
|
|
output: "string hexadecimal del hash MD5 (32 caracteres)"
|
|
tested: false
|
|
tests: []
|
|
test_file_path: ""
|
|
file_path: "python/functions/cybersecurity/cybersecurity.py"
|
|
---
|
|
|
|
## Ejemplo
|
|
|
|
```python
|
|
h = hash_md5(b"hello")
|
|
# "5d41402abc4b2a76b9719d911017c592"
|
|
```
|
|
|
|
## Notas
|
|
|
|
Usa hashlib de stdlib. MD5 no es seguro para propositos criptograficos pero es util para checksums, fingerprinting de archivos e identificacion rapida de IoCs.
|