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


Messages In This Thread
Password Generator - by nevets04 - 11-06-2009, 04:00 PM
RE: Password Generator - by Kenji Harima - 11-06-2009, 04:24 PM
RE: Password Generator - by Fallen - 11-07-2009, 02:15 PM
RE: Password Generator - by ßeowulf - 11-07-2009, 02:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Timed Password Cracker Gamewalkerz 0 878 12-30-2015, 01:56 PM
Last Post: Gamewalkerz
  Make your own encrytion! GENERATOR nevets04 2 1,188 12-06-2009, 07:32 PM
Last Post: Fallen

Forum Jump:


Users browsing this thread: 1 Guest(s)