12-06-2009, 12:10 PM
I made this for my "Make your own encryption" script. It just generates an encryption key, for those who are two lazy to make one.
Code:
import random
rawr = ['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']
a = random.choice(rawr)
rawr.remove(a)
b = random.choice(rawr)
rawr.remove(b)
c = random.choice(rawr)
rawr.remove(c)
d = random.choice(rawr)
rawr.remove(d)
e = random.choice(rawr)
rawr.remove(e)
f = random.choice(rawr)
rawr.remove(f)
g = random.choice(rawr)
rawr.remove(g)
h = random.choice(rawr)
rawr.remove(h)
i = random.choice(rawr)
rawr.remove(i)
j = random.choice(rawr)
rawr.remove(j)
k = random.choice(rawr)
rawr.remove(k)
l = random.choice(rawr)
rawr.remove(l)
m = random.choice(rawr)
rawr.remove(m)
n = random.choice(rawr)
rawr.remove(n)
o = random.choice(rawr)
rawr.remove(o)
p = random.choice(rawr)
rawr.remove(p)
q = random.choice(rawr)
rawr.remove(q)
r = random.choice(rawr)
rawr.remove(r)
s = random.choice(rawr)
rawr.remove(s)
t = random.choice(rawr)
rawr.remove(t)
u = random.choice(rawr)
rawr.remove(u)
v = random.choice(rawr)
rawr.remove(v)
w = random.choice(rawr)
rawr.remove(w)
x = random.choice(rawr)
rawr.remove(x)
y = random.choice(rawr)
rawr.remove(y)
z =random.choice(rawr)
rawr.remove(z)
one = random.choice(rawr)
rawr.remove(one)
two =random.choice(rawr)
rawr.remove(two)
three =random.choice(rawr)
rawr.remove(three)
four =random.choice(rawr)
rawr.remove(four)
five =random.choice(rawr)
rawr.remove(five)
six =random.choice(rawr)
rawr.remove(six)
seven =random.choice(rawr)
rawr.remove(seven)
eight =random.choice(rawr)
rawr.remove(eight)
nine =random.choice(rawr)
rawr.remove(nine)
print "a = %s" % a
print "b = %s" % b
print "c = %s" % c
print "d = %s" % d
print "e = %s" % e
print "f = %s" % f
print "g = %s" % g
print "h = %s" % h
print "i = %s" % i
print "j = %s" % j
print "k = %s" % k
print "l = %s" % l
print "m = %s" % m
print "n = %s" % n
print "o = %s" % o
print "p = %s" % p
print "q = %s" % q
print "r = %s" % r
print "s = %s" % s
print "t = %s" % t
print "u = %s" % u
print "v = %s" % v
print "w = %s" % w
print "x = %s" % x
print "y = %s" % y
print "z = %s" % z
print "1 = %s" % one
print "2 = %s" % two
print "3 = %s" % three
print "4 = %s" % four
print "5 = %s" % five
print "6 = %s" % six
print "7 = %s" % seven
print "8 = %s" % eight
print "9 = %s" % nine