Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Password Generator
#1
I know Remembering secure passwords is difficult. So I made this.
Code:
import random, os
a= ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','1','2','3','4','5','6','7','8','9','{',':','>','?','}','|','!','@','#','$','%','^','&','*','(',')','-','+']

z = int(raw_input("How many words in your password?: "))
os.system("clear")
List = []
for x in xrange(z):
    List.append(random.choice(a))
print "".join(List)
print "1) Yes"
print "2) No"
b = int(raw_input("Would you like to save this password to a text file?: "))
if b == 1:
    c = raw_input("What is this password for?: ")
    x = open("%s.txt" % c, "w")
    y = "".join(List)
    x.write(y)
    x.close
    x = open("%s.txt" % c, "r")
    x.read
    print "Saved!"
elif b == 2:
    raw_input("Press Enter To Continue")
Reply
#2
Dude thanks for the Py coding this is a must have. Smile
Good and Bad you Decide.
SupermanDevlish
Reply
#3
haha, Nevets you are getting much better Smile
[Image: nv70ad.png]
Terrorcore, unleash, extermination
Hyper real, cold blood, determination
fudge them, I like this sensation
Incredible, I from the annihilation
Reply
#4
Thanks for the script.

It appears everyone is making password generators now Tongue
I have been studying the traits and dispositions of the "lower animals" (so called) and contrasting them with the traits and dispositions of man. I find the result humiliating to me.
--Mark Twain
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Make your own encrytion! GENERATOR nevets04 2 1,294 12-06-2009, 07:32 PM
Last Post: Fallen

Forum Jump:


Users browsing this thread: 1 Guest(s)