Skip to main content

Vérification de mot de passe avec score et détection de codes communs, adapté au français.

Project description

pwchkr

pwchkr est un module Python pour vérifier la force d'un mot de passe avec un score sur 10 et détecter les mots de passe trop communs, y compris français. pw -> password. chkr -> checker

Installation : pip install pwchkr

Utilisation :

  • score_motdepasse(mdp) : Évalue la force d’un mot de passe. Retourne "Code commun" si le mot de passe est trop courant, sinon un score sur 10.
  • generate_password(longueur=12) : Génère un mot de passe aléatoire sûr. longueur = taille du mot de passe (défaut 12).

Exemple : from pwchkr import score_motdepasse, generate_password

print(score_motdepasse("123456")) # → "Code commun"

print(score_motdepasse("Ab3$9fGh!")) # → 8 ou 9

mdp = generate_password(12)

print(mdp)

print(score_motdepasse(mdp)) # → ≥ 8

Codes communs détectés : 123456, 123456789, qwerty, password, 1234567, 12345678, 12345, 111111, 123123, abc123, 1234, iloveyou, 1q2w3e4r, 000000, qwertyuiop, 123, monkey, dragon, baseball, letmein, login, football, admin, welcome, solo, 1qaz2wsx, master, sunshine, princess, 654321, 9876543210, azerty, 0000, 00000000, motdepasse, azerty123, bonjour, secret, chocolat

Exemple complet :

from pwchkr import score_motdepasse, generate_password

print(score_motdepasse("motdepasse")) # → "Code commun"

mdp = generate_password(14)

print(mdp)

print(score_motdepasse(mdp)) # → ≥ 8

pour l'installer : pip install pwchkr

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

pwchkr-0.1.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

pwchkr-0.1.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file pwchkr-0.1.0.tar.gz.

File metadata

  • Download URL: pwchkr-0.1.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.10

File hashes

Hashes for pwchkr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 40ba1dc1ed959e13053ee747b68c04ba89ac23219bfef91161eea1fed428ffa5
MD5 96195a2e27b8add23c3fb90029aa991c
BLAKE2b-256 fff39be0d8abd74256b218e7b6be87cf5f243e21bf6321ad53d358a14c90c07e

See more details on using hashes here.

File details

Details for the file pwchkr-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pwchkr-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.10

File hashes

Hashes for pwchkr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e53616bb828383f12826236f52b5acc5aa28174b5d82880f637802fbf0836d07
MD5 03ed46ecc4c009e926033cd3b6c77468
BLAKE2b-256 25907c8fe07c3ab3410bf615849530d60283005bc7146f959b320797d73dd40b

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