I've wondered if someone out there has figured out how the checksum digit is calculated in a flashcode.
I've looked at it a bit here, but haven't stumbled upon how its done.
Thank you.
B.
Flashcode checksum value
Moderator: Queue Moderator
-
- Posts: 930
- Joined: Fri Jun 23, 2006 11:21 am
Re: Flashcode checksum value
I would ask Akardam, he has a wonderful flashcode decoder in his site and I would assume he knows how to calculate the flashcode checksum also.
Re: Flashcode checksum value
I think all the characters have to add up to 9 or something
Re: Flashcode checksum value
The flashcode checksum is calculated via a variation on the Luhn_algorithm.
If you're curious, I've got a script into which you can drop a flashcode and it will compute the checksum for you:
http://www.akardam.net/moto/tools/flashcode_checksum.pl
Edit: Actually, it would be more accurate to say it was based on a variation of the Luhn_mod_N_algorithm because of needing to map alpha-characters to numbers, and having a checksum digit which can be any number 0-9. It's still based on modulus 10 though.
If you're curious, I've got a script into which you can drop a flashcode and it will compute the checksum for you:
http://www.akardam.net/moto/tools/flashcode_checksum.pl
Edit: Actually, it would be more accurate to say it was based on a variation of the Luhn_mod_N_algorithm because of needing to map alpha-characters to numbers, and having a checksum digit which can be any number 0-9. It's still based on modulus 10 though.
-
- Posts: 930
- Joined: Fri Jun 23, 2006 11:21 am
Re: Flashcode checksum value
Look, we ask how to do it, and he answers us AND makes a calculator for us. Too cool...
Re: Flashcode checksum value
*rubs head*
I don't know what that all says but I'm pretty sure it's a little more complicated than just everything adding up to 9.
I don't know what that all says but I'm pretty sure it's a little more complicated than just everything adding up to 9.