if self.c[k].indexOf(s[i+3])==null then self.c[k].push(s[i+3])
else
self.c[k]=[s[i+3]]
end if
end for
end for
end function
PasswordGenerator.AllPasswords=function()
r={}
f={}
for s in self.s
for i in range(0,s.len-4)
if f.hasIndex(s[i:i+3]) then f[s[i:i+3]][s.len]=1 else f[s[i:i+3]]={s.len:1}
end for
end for
for e in f
for l in e.value.indexes
self.r(l,e.key,r)
end for
end for
o={}
for s in r.indexes
if s.len<5 then continue
a=s[0]
b=s[1]
if a==b or "HRL'AEIOU".indexOf(b)==null and "AEIOUS".indexOf(a)==null and ["CH","MC"].indexOf(a+b)==null then s=s[1]+s[2:].lower else s=s[0]+s[1:].lower
o[md5(s)]=s
o[md5(s.lower)]=s.lower
end for
return o
end function
PasswordGenerator.r=function(l,s,o)
c=s[s.len-3:]
if self.c.hasIndex(c) and s.len<l then
for c in self.c[c]
self.r(l,s+c,o)
end for
else
o[s]=1
end if
end function
PasswordGenerator.init(PASSWORDS)
print(time)
HASH_TABLE=PasswordGenerator.AllPasswords
print(time)
out = ""
count = 0
lol = 0
for i in HASH_TABLE
count = count + 1
out = out + char(10) + i["key"] + "=" + i["value"]