Welcome to collectivesolver - Programming & Software Q&A. A website you can trust. All programs tested and works. Contact: aviboots(AT)netvision.net.il
Bonsai Boy of New York Bonsai Trees and Accessories

BlueHost Web Hosting

Liquid Web iThemes WordPress Hosting

Ecommerce Software - Best Ecommerce Platform Made for You - Free Trial

DreamHost Web Hosting


Ecommerce Software - Best Ecommerce Platform Made for You - Free Trial

Liquid Web Cloud VPS Hosting

10,935 questions

14,843 answers

573 users

How to generate random passwords with specific length in Python

3 Answers

0 votes
import string  
import random  

def generate_random_passwords(len):  
    passwords = ''.join([random.choice(  
                     string.ascii_lowercase + string.digits)  
                       for i in range(len)])  
                            
    return passwords  
    

password = generate_random_passwords(12)  
print(password)  
 



'''
run:

9uf848s9c36i

'''

 




answered May 14 by avibootz
0 votes
import string  
import random  

def generate_random_passwords(len):  
    passwords = ''.join([random.choice(  
                     string.ascii_lowercase + string.ascii_uppercase + string.digits)  
                       for i in range(len)])  
                            
    return passwords  
    

password = generate_random_passwords(13)  
print(password)  
 



'''
run:

0YNTezMh4p9He

'''

 




answered May 14 by avibootz
0 votes
import string  
import random  

def generate_random_passwords(len):  
    passwords = ''.join([random.choice(  
                     string.ascii_letters + string.digits + string.punctuation)  
                       for i in range(len)])  
                            
    return passwords  
    

password = generate_random_passwords(15)  
print(password)  
 



'''
run:

LC+h+[<K|b9[Hp.

'''

 




answered May 14 by avibootz
...