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 Managed Dedicated Server: RAID 1 SSD with 16GB of RAM minimum! 24/7 On-Site Heroic Support! Industry-Leading SLA!

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

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

getflywheel wordpress hosting


Liquid Web Cloud VPS Hosting

10,224 questions

13,922 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
...