Skip to content

Instantly share code, notes, and snippets.

@Kuaranir
Forked from DOKL57/password.py
Created March 26, 2019 14:23
Show Gist options
  • Save Kuaranir/c0fbfe8ff721557dadc4cf5e9a406b5b to your computer and use it in GitHub Desktop.
Save Kuaranir/c0fbfe8ff721557dadc4cf5e9a406b5b to your computer and use it in GitHub Desktop.
Генератор паролей Python
import random
num = input('login ')
pas = ''
for x in range(16): #Количество символов (16)
pas = pas + random.choice(list('1234567890abcdefghigklmnopqrstuvyxwzABCDEFGHIGKLMNOPQRSTUVYXWZ')) #Символы, из которых будет составлен пароль
print('Hello, ', num, 'your password is: ', pas)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment