Genera contraseñas a partir de entropía de audio/video en tiempo real, mezclada con el CSPRNG del sistema.
Project description
Qué es: librería y CLI que captura video y audio en tiempo real, mezcla esa entropía con el CSPRNG del sistema (HKDF) y genera contraseñas seguras.
No es determinista por diseño (tipo LavaRand). Puedes activar una sal determinista solo para pruebas.
Instalación
pip install -e .[cli]
En Windows/macOS/Linux deben existir dispositivos de cámara y/o micrófono accesibles. Si alguno falla, la librería cae en OS randomness igualmente.
Uso rápido (CLI)
avpassgen --length 24 --count 3 --duration 3
Uso en código
from avpassgen import generate_passwords, AvPassGenConfig
cfg = AvPassGenConfig(duration_s=3.0, use_video=True, use_audio=True)
passwords = generate_passwords(length=24, count=5, cfg=cfg)
print(passwords)
Seguridad
- Mezcla entropía A/V con
os.urandom()vía HKDF-SHA256. - Verifica heurísticamente la entropía (umbral configurable).
- Para login reproducible, usa en su lugar una librería determinista (imagen+frase) o activa
deterministic_saltsabiendo que entonces será repetible.
Limitaciones
sounddevicerequiere PortAudio (ruedas precompiladas suelen estar disponibles).- En entornos sin dispositivos, la entropía provendrá del OS.
- Las estimaciones de entropía son heurísticas; para producción, añade baterías de tests (NIST SP 800-90B).
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 avpassgen-0.1.0.tar.gz.
File metadata
- Download URL: avpassgen-0.1.0.tar.gz
- Upload date:
- Size: 20.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea21f0fde7ccf0dfa78c52c733cdd6cf6e1faf61fd5b477aa2bf65b636e804d0
|
|
| MD5 |
a2af8c95983523ca006d1316f3c0f7c8
|
|
| BLAKE2b-256 |
7d67ed9b2463491f3a2aeb724e04ab41fc2fafbe2ed41c8ba2b4a540517a91fa
|
File details
Details for the file avpassgen-0.1.0-py3-none-any.whl.
File metadata
- Download URL: avpassgen-0.1.0-py3-none-any.whl
- Upload date:
- Size: 20.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1a491821703f8f8862218b37b8f3f9459a84ce6b1ef454b0cef4f1e3fa51b71
|
|
| MD5 |
923c4835554b79aa32398e2725b7f130
|
|
| BLAKE2b-256 |
f9977aa6a81a17a6db086136ea29e0ae43516f0d88b9951ae24b65ccb3a1103f
|