Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
sub decodekey { my @digits = ('B','C','D','F','G','H','J','K','M','P','Q','R','T','V +','W','X','Y','2','3','4','6','7','8','9'); return "No key found\n" if ($_[0] eq ""); my @id = split(/,/,shift); my $key=""; for (my $i=28; $i>=0; $i--) { if (($i+1)%6) { my $ac=0; for (my $j=66; $j>=52; $j--) { $ac<<=8; $ac+=hex $id[$j]; $id[$j]=sprintf("%x",($ac/24)&255); $ac%=24; } $key=$digits[$ac].$key; } else { $key='-'.$key; } } return $key; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Get windows cd key
by thanos1983 (Parson) on Mar 14, 2017 at 16:09 UTC | |
by Anonymous Monk on Mar 14, 2017 at 18:05 UTC | |
by huck (Prior) on Mar 14, 2017 at 18:24 UTC | |
by thanos1983 (Parson) on Mar 14, 2017 at 23:01 UTC | |
by stevieb (Canon) on Mar 14, 2017 at 18:12 UTC | |
by thanos1983 (Parson) on Mar 14, 2017 at 22:56 UTC | |
by Anonymous Monk on Mar 14, 2017 at 18:45 UTC |