Author Topic: Is there another key converter?  (Read 1260 times)




Kalphiter's is down and I was wondering, is there any other way to do this?

why do you want a key converter
kalphiter's seemed pretty useless to me

-snip-

Code: [Select]
function BLID_To_Prefix(%blid)
{
%map = "ABCDEFGHJKLMNPQRSTUVWXYZ23456789";
%power = 1048576;
for(%i=0;%i<5;%i++)
{
while(%blid >= %power)
{
%blid -= %power;
%v[%i]++;
}
%power /= 32;
}
for(%i=0;%i<5;%i++)
%key = %key @ getSubStr(%map, %v[%i]+0, 1);
return %key;
}

function Prefix_To_BLID(%key)
{
%map = "ABCDEFGHJKLMNPQRSTUVWXYZ23456789";
%power = 1048576;
for(%i=0;%i<5;%i++)
{
%blid += %power * strPos(%map, getSubStr(%key, %i, 1));
%power /= 32;
}
return %blid;
}

There is probably a better way to do this but it does what you want. Unless you plan to be calculating thousands of these things a second this will suffice.

umm the site is up for me

Code: [Select]
function BLID_To_Prefix(%blid)
{
%map = "ABCDEFGHJKLMNPQRSTUVWXYZ23456789";
%power = 1048576;
for(%i=0;%i<5;%i++)
{
while(%blid >= %power)
{
%blid -= %power;
%v[%i]++;
}
%power /= 32;
}
for(%i=0;%i<5;%i++)
%key = %key @ getSubStr(%map, %v[%i]+0, 1);
return %key;
}

function Prefix_To_BLID(%key)
{
%map = "ABCDEFGHJKLMNPQRSTUVWXYZ23456789";
%power = 1048576;
for(%i=0;%i<5;%i++)
{
%blid += %power * strPos(%map, getSubStr(%key, %i, 1));
%power /= 32;
}
return %blid;
}

There is probably a better way to do this but it does what you want. Unless you plan to be calculating thousands of these things a second this will suffice.
How do you work that exactly?

How do you work that exactly?

BLID_To_Prefix(11239);
Prefix_To_BLID("AAL9H");

mine is aazl3

I know the whole thing by heart




Kalphiter's is down and I was wondering, is there any other way to do this?

You could ask me for help...

What's it for anyways?


What's it for anyways?
To obtain the first 5 letters/numbers of a key (known as a key ID) and vice versa.

To obtain the first 5 letters/numbers of a key (known as a key ID) and vice versa.
but why exactly do you need to know this information?

but why exactly do you need to know this information?
A few reasons:
1) Search for your lost file/email with your key by gaining a major piece of the key
2) Verify the validity of keys
3) Be a prick and scare people (see: Woodland_Creature) into thinking their keys are compromised
(Those key IDs are valid but the keys are not real; keys never have these characters: I 1 0 O)

A few reasons:
1) Search for your lost file/email with your key by gaining a major piece of the key
2) Verify the validity of keys
3) Be a prick and scare people (see: Woodland_Creature) into thinking their keys are compromised
(Those key IDs are valid but the keys are not real; keys never have these characters: I 1 0 O)

hurr hurr hurr


hurr hurr hurr
Poor Rastaqe :cookieMonster:

Just imagine the guy with the "Abrown town" key ID feels...