“Générateur de mots de passe en python” Réponses codées

Générateur de mots de passe Python

import string
from random import *
characters = string.ascii_letters + string.punctuation  + string.digits
password =  "".join(choice(characters) for x in range(randint(8, 16)))
print password
Glorious Giraffe

Générateur de mots de passe Python

import random

lower = "abcdefghijklmnopqrstuvwxyz"
upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
numbers = "0123456789"
symbols = "@#$&_-()=%*:/!?+."


string = lower + upper + numbers + symbols
length = int(input("How Many Characters Do You Want Your Password To Be: "))
password = "".join(random.sample(string, length))

print("Here Is Your Password:", password)
Sleepy Skimmer

Générateur de mots de passe en python

import random

strong_keys = ["@","#","$","£","π","¥","&","3","¢","3","*","?","!","%","/","G","A","B","F","W","F","H","6","9",":","^","=","|","~","∆"]

def password():
	try:
		n = int(input('your password contain(type in number) : '))
	except:
		print('Rerun the program and type in number please')

	ans = ""
	for i in range(n):
		rand = random.choice(strong_keys)
		if i == 0:
			ans = rand
		else:
			ans += rand
		
	print('\n\nyour password: '+ans+'\n\n')
	user = input('if you dont like this?\nType \"r\" else \"q\" : ')
	if user.lower() == 'r':
		password()
	else:
		quit()
	
password()
S UZAIR

Générateur de mots de passe Pythob

import string
import random

chars = list(string.ascii_letters + string.digits)
lenght = int(input("Lenght: "))
password = []
random.shuffle(chars)
for i in range(lenght):
    random.shuffle(chars)
    password.append(random.choice(chars))
    
print("".join(password))
szabioe

Réponses similaires à “Générateur de mots de passe en python”

Questions similaires à “Générateur de mots de passe en python”

Plus de réponses similaires à “Générateur de mots de passe en python” dans Python

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code