Friend Code Calculations

Discussion in 'NDS - ROM Hacking and Translations' started by Wiimm, May 2, 2015.

  1. Wiimm
    OP

    Wiimm Developer

    Member
    2,162
    368
    Aug 11, 2009
    Gambia, The
    Germany
    Does anyone know, how NDS games create a friend code (decimal number with 12 digits, 39-40 bits; format 1234-1234-1234) based on the profile id (32-bit number; created by the server (GameSpy or Wiimmfi))?

    More background infos: http://wiki.tockdom.com/wiki/Friend_code


    EDIT:
    A disassembler listing of any game with online support may help.
     
  2. Wiimm
    OP

    Wiimm Developer

    Member
    2,162
    368
    Aug 11, 2009
    Gambia, The
    Germany
    All cleared now. I have found some code and can't find out the algorithm. It is like MKWii, but uses a CRC8 checksum instead of MD5. It is already implemented for Wiimmfi.