hexmexican

hexmexican's avatar

Contact

  • Add to Friends
  • Send Message
  • Trade Items

Equipped List

Interest Tags

Remind me to update my interests.

Wish List

 

About

Comments

View All Comments

sumnerd Report | 03/10/2008 6:01 am
sumnerd
#random password

char_list1 = ["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"]

char_list2 = ["!", "@", "#", "$", "%", "^", "&", "*", "=", "|", "{"]

char_list3 = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"]

char_list4 = ["a", "b", "c", "d", "e", "f", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]

pwd_length_entry = input("Password length: " wink





while pwd_length_entry <6 or pwd_length_entry > 12:

print "paswword entry must be between 6 and 12 digits"

pwd_length_entry = input("Password length: " wink

x=[1,2,3,4]

counter = 1

password = ""

import random

while counter <= pwd_length_entry:

x2=random.choice(x)

if x2==1:

pwd_char=random.choice(char_list1)

password += pwd_char

counter += 1

if x2==2:

pwd_char=random.choice(char_list2)

password += pwd_char

counter += 1

if x2==3:

pwd_char=random.choice(char_list3)

password += pwd_char

counter += 1

if x2==4:

pwd_char=random.choice(char_list4)

password += pwd_char

counter += 1

print password



#test password

print "----------Test Password----------"

user_password_entry = raw_input("Enter password: " wink



if user_password_entry == password:

print "welcome to the world of tomorrow!"



while user_password_entry != password:



print "incorrect password."

user_password_entry = raw_input("Enter password: " wink
PtPhoenix Report | 01/14/2008 3:28 pm
PtPhoenix
thanks for buying the shirt.
Masterniles Report | 12/11/2007 5:46 am
Masterniles
S4// //45 |-|3|23
sumnerd Report | 12/10/2007 6:09 am
sumnerd
ur a nub

Signature

 

Recent Visitors

Forums

Posts per Day: 0.00

Total Posts: 0

My Playlist

You currently have zero playlists!