md5crypt.py
branchstable
changeset 2190 d9f5fd1879fc
parent 2172 cf8f9180e63e
child 3149 c6a85fafb155
equal deleted inserted replaced
2189:08c66a83c3ca 2190:d9f5fd1879fc
    83         else:
    83         else:
    84             ctx = ctx + pw[0]
    84             ctx = ctx + pw[0]
    85         i = i >> 1
    85         i = i >> 1
    86     final = md5.md5(ctx).digest()
    86     final = md5.md5(ctx).digest()
    87     # The following is supposed to make
    87     # The following is supposed to make
    88     # things run slower. 
    88     # things run slower.
    89     # my question: WTF???
    89     # my question: WTF???
    90     for i in xrange(1000):
    90     for i in xrange(1000):
    91         ctx1 = ''
    91         ctx1 = ''
    92         if i & 1:
    92         if i & 1:
    93             ctx1 = ctx1 + pw
    93             ctx1 = ctx1 + pw