Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 21 lines (16 sloc) 444 Bytes
# Script de geração de Senha
# Carlos Carvalho
# 31/12/2017
import random
import string
def randompassword(number):
chars = random.sample(string.ascii_lowercase + string.digits, number)
passw = ''.join(map(str, chars))
return passw
amount = int(input("Quantas senhas:\n"))
number = int(input("Qual o comprimento da senha?\n"))
for i in range(amount):
print(f" Senha: {i} - {randompassword(number)} ")
You can’t perform that action at this time.