🛠️ToolsShed

Şifre Oluşturucu

Özelleştirilebilir seçeneklerle güçlü, güvenli şifreler oluşturun.

6128

Parola Oluşturucu, tarayıcınızın yerleşik rastgele sayı üreticisini (Web Crypto API) kullanarak kriptografik olarak güvenli rastgele parolalar oluşturur. Bu, parolaların tamamen cihazınızda oluşturulduğu anlamına gelir — asla ağ üzerinden gönderilmez veya herhangi bir yerde saklanmaz.

Hesap oluşturduğunuz hizmetin gereksinimlerini karşılamak için uzunluğu (8-128 karakter) ve karakter setini yapılandırın. Güvenlik uzmanlarının çoğu, büyük harf, küçük harf, rakam ve sembol karışımı kullanarak en az 16 karakterlik parolalar önerir.

Parola yöneticisi, parola oluşturucunun en iyi tamamlayıcısıdır. Bitwarden, 1Password veya KeePass gibi araçlar, her site için benzersiz, rastgele bir parola oluşturmanızı ve saklamanızı, bunları hatırlamanıza gerek kalmadan yapmanızı sağlar. Parolaları asla birden fazla hizmette yeniden kullanmayın.

Sıkça Sorulan Sorular

Kod Uygulaması

import secrets
import string

def generate_password(
    length: int = 16,
    use_upper: bool = True,
    use_lower: bool = True,
    use_digits: bool = True,
    use_symbols: bool = True,
) -> str:
    """Generate a cryptographically secure random password."""
    charset = ""
    required = []

    if use_lower:
        charset += string.ascii_lowercase
        required.append(secrets.choice(string.ascii_lowercase))
    if use_upper:
        charset += string.ascii_uppercase
        required.append(secrets.choice(string.ascii_uppercase))
    if use_digits:
        charset += string.digits
        required.append(secrets.choice(string.digits))
    if use_symbols:
        symbols = "!@#$%^&*()-_=+[]{}|;:,.<>?"
        charset += symbols
        required.append(secrets.choice(symbols))

    if not charset:
        raise ValueError("At least one character type must be selected")

    # Fill the rest of the password
    remaining = [secrets.choice(charset) for _ in range(length - len(required))]
    password_list = required + remaining

    # Shuffle to avoid predictable positions
    secrets.SystemRandom().shuffle(password_list)
    return "".join(password_list)

# Examples
print(generate_password(16))
print(generate_password(24, use_symbols=False))
print(generate_password(8, use_upper=False, use_symbols=False))

Comments & Feedback

Comments are powered by Giscus. Sign in with GitHub to leave a comment.