Miér Dic 29, 2010 6:12 pm
- Código:
# -*- coding: utf-8 -*-
import os
from random import *
from time import sleep
#############################
# Pass Creator 1.0 by eLi4s #
#############################
print '''
#############################
# Pass Creator 1.0 by eLi4s #
#############################
'''
def create_pass(x=8):
a=x+1
x=x-1
passs=[]
letras=['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']
letrasm=['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']
numeros=['0','1','2','3','4','5','6','7','8','9']
numerosyletras=letras+numeros+letrasm
ca='a'
ca=ca*a
passs+=ca
do=0
passsc=''
for n in range(0,x):
passs[n]=randint(0,64)
passs[n]=numerosyletras[passs[n]]
passsc+=passs[n]
return passsc
print '1-Crear Pass'
print '2-Salir'
print
while 1:
op=raw_input('Ingrese su Opcion:')
if op == '1':
passs=create_pass()
print '''
Cre..'''
sleep(2)
print '''
Crean..'''
sleep(2)
print '''
Creando'''
sleep(2)
print
print 'El Password ha sido creado con exito!:',passs
elif op == '2':
print '''
Saliendo'''
sleep(2)
exit()
else:
print '''
No es una Opcion Valida...'''
Mas Tarde el 2.0 con interfas GTK!!