Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

password generator in 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('

your password: '+ans+'

')
	user = input('if you dont like this?
Type "r" else "q" : ')
	if user.lower() == 'r':
		password()
	else:
		quit()
	
password()
Source by newprogrammer.rf.gd #
 
PREVIOUS NEXT
Tagged: #password #generator #python
ADD COMMENT
Topic
Name
4+2 =