Skip to main content

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_salt sabiendo que entonces será repetible.

Limitaciones

  • sounddevice requiere 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

avpassgen-0.1.0.tar.gz (20.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

avpassgen-0.1.0-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

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

Hashes for avpassgen-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ea21f0fde7ccf0dfa78c52c733cdd6cf6e1faf61fd5b477aa2bf65b636e804d0
MD5 a2af8c95983523ca006d1316f3c0f7c8
BLAKE2b-256 7d67ed9b2463491f3a2aeb724e04ab41fc2fafbe2ed41c8ba2b4a540517a91fa

See more details on using hashes here.

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

Hashes for avpassgen-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e1a491821703f8f8862218b37b8f3f9459a84ce6b1ef454b0cef4f1e3fa51b71
MD5 923c4835554b79aa32398e2725b7f130
BLAKE2b-256 f9977aa6a81a17a6db086136ea29e0ae43516f0d88b9951ae24b65ccb3a1103f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page