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

Desde PyPI:

pip install avpassgen

O en modo editable para desarrollo:

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).

Publicación

Disponible en PyPI:
https://pypi.org/project/avpassgen/0.1.0/

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.1.tar.gz (20.3 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.1-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file avpassgen-0.1.1.tar.gz.

File metadata

  • Download URL: avpassgen-0.1.1.tar.gz
  • Upload date:
  • Size: 20.3 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.1.tar.gz
Algorithm Hash digest
SHA256 89cd70b5a02ea4fb159bd95a1cbce714c5f0f74d2837a21f27c2dafdc512839a
MD5 39b8e3e68e59413d753d527ded83b916
BLAKE2b-256 b4737e9b09e42ebb68daf26abd27f7dd6afe1d5e5fc30838fd94f69309974782

See more details on using hashes here.

File details

Details for the file avpassgen-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: avpassgen-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 20.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 19e5cd92c816723de9361a6a11485731fee1a57d18bbe8eeaceff206127f5ecc
MD5 835efcacc74483ff34d9756fbe646911
BLAKE2b-256 5ea764179254b813d34d36bb2d79df83e752b32769bb8616e03f99ff5eb18b1d

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