Activity Stream
93,153 MEMBERS
111 ONLINE
Python Password Generator Python Password Generator Python Password Generator Python Password Generator Python Password Generator
Results 1 to 6 of 6
  1.    Tweet this post   Share This Post On Facebook Share This Post On Google+
    #1
    Programmar
    Xcode's Avatar

    Devil Python Password Generator

    Source Code : 
        import string
        import random
         
        def main
    ():
        while 
    True:
        
    stop input("Generate password? y/n: ")
        if 
    stop and stop[0].lower() == "n":
        break
         
        
    length int
         
        size 
    input("What length do you want the password to be(4-20): ")
        if 
    size == "4":
        
    length 4
        
    if size == "5":
        
    length 5
        
    if size == "6":
        
    length 6
        
    if size == "7":
        
    length 7
        
    if size == "8":
        
    length 8
        
    if size == "9":
        
    length 9
        
    if size == "10":
        
    length 10
        
    if size == "11":
        
    length 11
        
    if size == "12":
        
    length 12
        
    if size == "13":
        
    length 13
        
    if size == "14":
        
    length 14
        
    if size == "15":
        
    length 15
        
    if size == "16":

    [Login or Register to remove this advertisement]

        
    length 16
        
    if size == "17":
        
    length 17
        
    if size == "18":
        
    length 18
        
    if size == "19":
        
    length 19
        
    if size == "20":
        
    length 20
        
    else:
        
    length 6
         
        chars 
    string.ascii_letters string.digits
        
    return ''.join(random.choice(chars) for x in range(length)) 
    Xcode Reviewed by Xcode on . Python Password Generator import string import random def main(): while True: stop = input("Generate password? y/n: ") if stop and stop.lower() == "n": break length = int Rating: 5

  2. The Following 1 Users Say Thank You to Xcode For This Useful Post:
    [ Click to Expand ]

    Rebel (4th March 2012)

  3.   Advertisements

  4.    Tweet this post   Share This Post On Facebook Share This Post On Google+
    #2
    Symbian Translator
    Python Master
    Python Section MOD
    Rebel's Avatar
    Python Password Generator
    nice snippet Xcode bro,
    I just shortenned ur code a little:
    Source Code : 
    import stringrandom

    def main
    ():
        while 
    True:
            
    stop raw_input('Generate Password? y/n:')
            if 
    stop and stop.strip()[0].lower() == 'n': break
            
    size int(raw_input("What length do you want the password be (4-20)"))
            if 
    4<=size<=20length size
            
    else: length 6
            chars 
    string.ascii_letters string.digits
            
    return ''.join(random.choice(chars) for x in range(length))

    print 
    main() 
    [IMG]http://up.********.com/images/n6oouxsnesjmahzqjs8y.png[/IMG]

  5. The Following 1 Users Say Thank You to Rebel For This Useful Post:
    [ Click to Expand ]

    Xcode (4th March 2012)

  6.    Tweet this post   Share This Post On Facebook Share This Post On Google+
    #3
    Programmar
    Xcode's Avatar
    i have given level 1 code so that my friends can work on it.
    Above code is for pro guys

    Source Code : 
    from whrandom import choice
    import string

    def GenPasswd
    ():
        
    chars string.letters string.digits
        
    for i in range(8):
            
    newpasswd newpasswd choice(chars)
        return 
    newpasswd

    def GenPasswd2
    (length=8chars=string.letters string.digits):
        return 
    ''.join([choice(chars) for i in range(length)]) 
    Logic :
    Source Code : 
    newpasswd ''.joinRandom().sample(string.letters+string.digits12) ) 

  7. The Following 1 Users Say Thank You to Xcode For This Useful Post:
    [ Click to Expand ]

    Rebel (4th March 2012)

  8.    Tweet this post   Share This Post On Facebook Share This Post On Google+
    #4
    Symbian Translator
    Python Master
    Python Section MOD
    Rebel's Avatar
    Python Password Generator
    yes you are right bro, btw, Im not a pro just trying to learn from people like u, my friend
    cheers


    just for a little more fun :

    Source Code : 
    from random import randint
    from string import printable

    passGen 
    lambda length''.join(printable[randint(0,len(printable)-1)] for i in range(length)])

    print 
    passGen(8
    [IMG]http://up.********.com/images/n6oouxsnesjmahzqjs8y.png[/IMG]

  9. The Following 1 Users Say Thank You to Rebel For This Useful Post:
    [ Click to Expand ]

    Xcode (4th March 2012)

  10.    Tweet this post   Share This Post On Facebook Share This Post On Google+
    #5
    Programmar
    Xcode's Avatar
    Quote Originally Posted by Rebel View Post
    yes you are right bro, btw, Im not a pro just trying to learn from people like u, my friend
    cheers


    just for a little more fun :

    Source Code : 
    from random import randint
    from string import printable

    passGen 
    lambda length''.join(printable[randint(0,len(printable)-1)] for i in range(length)])

    print 
    passGen(8
    that is cool method ur skill is pro mate

    a small alert of ur code

    Source Code : 
    import string
    from random import choice
     
    size 
    9
    ''.join([choice(string.letters string.digits) for i in range(size)]) 

  11. The Following 1 Users Say Thank You to Xcode For This Useful Post:
    [ Click to Expand ]

    Rebel (4th March 2012)

  12.    Tweet this post   Share This Post On Facebook Share This Post On Google+
    #6
    Symbian Translator
    Python Master
    Python Section MOD
    Rebel's Avatar
    Python Password Generator
    yes, choice in this case can work better than randint
    thank you Xcode bro
    [IMG]http://up.********.com/images/n6oouxsnesjmahzqjs8y.png[/IMG]

  13. The Following 1 Users Say Thank You to Rebel For This Useful Post:
    [ Click to Expand ]

    Xcode (4th March 2012)

Thread Information

Users Browsing this Thread

There Are Currently 1 Users Browsing This Thread. (0 Members and 1 Guests)

Similar Threads

  1. [Qt] AKIN ORTA Password Generator v1.00(0) S^3 Anna Belle Signed
    By taha43 in forum Symbian OS^3 Applications
    Replies: 0
    Last Post: 9th May 2012, 07:57 PM
  2. Advanced Password Generator v1.21
    By mangyang in forum Android OS Applications
    Replies: 0
    Last Post: 16th March 2012, 10:30 AM
  3. Random password generator
    By [email protected]$h in forum Perl
    Replies: 0
    Last Post: 19th February 2012, 06:05 PM
  4. Password Generator v1.1.0 by Denis Mingulov
    By AshuGite in forum MeeGo Applications
    Replies: 0
    Last Post: 9th February 2012, 01:19 PM
  5. [SIS] Random Password Generator v1.00(0) S^3 Anna Belle Signed Retail Vanz_smurf
    By Ayurvedic in forum Symbian OS^3 Applications
    Replies: 0
    Last Post: 17th November 2011, 10:22 AM

Tags for this Thread

BE SOCIAL
Python Password Generator Python Password Generator Python Password Generator Python Password Generator Python Password Generator