🔐

Password Generator

Verified

by Community

Creates cryptographically secure passwords with configurable length, character sets, and passphrase options.

passwordsecuritygeneratorcrypto

Password Generator Skill

Generate cryptographically secure passwords using Python.

Random Password

python3 -c "
import secrets, string
length = 20
chars = string.ascii_letters + string.digits + string.punctuation
password = ''.join(secrets.choice(chars) for _ in range(length))
print(password)
"

Passphrase

python3 -c "
import secrets
words = open('/usr/share/dict/words').read().splitlines()
words = [w for w in words if 4 <= len(w) <= 8 and w.isalpha()]
passphrase = '-'.join(secrets.choice(words) for _ in range(5))
print(passphrase)
"

Token

python3 -c "import secrets; print(secrets.token_urlsafe(32))"

Notes

  • Uses secrets module (cryptographically secure)
  • Default length: 20 characters for passwords, 5 words for passphrases