This script generates 3000+ valid keys

Code:

%00992698 17 00 00 00 50 58 31 51 47 ....PX1QG
%009926a1 54 54 45 55 3c 53 37 3f 3c TTEU<S7?<
%009926aa 39 54 34 33 33 38 37 4d 33 9T43387M3
hash = {'50', '58' '31' '51' '47' '54' '54' '45' '55' '3c',...
'53' '37' '3f' '3c' '39' '54' '34' '33' '33' '38' '37' '4d' '33'};
hash2 = hex2dec(hash);
Nkeys = 0;
L = 23;
minkey = 48;
maxkey = 90;
key = minkey*ones(1,L);
accs = zeros(1,L);
i = 1;
M = 2^32;
while(i>0 & i<=L)
Li = L-i;
acc = accs(i);
c = key(i);
t = rem(acc*Li,M);
acc = rem(acc + t,M) + c;
y = rem(acc*c,M) + i;
y = rem(y,90);
if(y<48)
y = y+48;
end
while(y<48 | y>90)
y = rem(y,90);
if(y<48)
y = y+48;
end
end
if(y == hash2(i))
if(i==23)
Nkeys = Nkeys +1;
char(key)
key(i) = c + 1;
if(key(i) > maxkey)
key(i) = minkey;
i = i - 1;
if(i>0)
key(i) = key(i) + 1;
end
end
else
i = i +1;
accs(i) = acc;
end
else
key(i) = c + 1;
if(key(i) > maxkey)
key(i) = minkey;
i = i - 1;
if(i>0)
key(i) = key(i) + 1;
end
end
end
end
Nkeys

The first key generated is:=4PC1HSMJ28A@L86M7JF:K0

The last key generated is: OX4SGJIKLX<1=:0RU?1<H?K

Many more keys can be generated if the range of input chars is expanded.

## Bookmarks