Dr. Mario 64 Password Tool Version 1.1
A command-line tool written in C++ that allows to generate and decode the passwords of Dr. Mario 64.
Loading...
Searching...
No Matches
PasswordGenerate.h File Reference

PasswordGenerate.cpp's header file. More...

#include <string>

Go to the source code of this file.

Functions

string _GeneratePassword (unsigned char GameMode, unsigned char Level, unsigned char Speed, unsigned int Score, unsigned short Time, unsigned char PlayerName[], unsigned short FrameCount)
string _GenerateRandomPassword ()

Detailed Description

PasswordGenerate.cpp's header file.

Author
WaluigiBSOD

Function Documentation

◆ _GeneratePassword()

string _GeneratePassword ( unsigned char GameMode,
unsigned char Level,
unsigned char Speed,
unsigned int Score,
unsigned short Time,
unsigned char PlayerName[],
unsigned short FrameCount )

Generates a password given the parameters in input.

Data must be validated before calling this function as it can also be used to generate passwords containing invalid data, however expected data from each parameter is illustrated below.

Parameters
[in]GameModeDesired game mode (0 - Classic, 1 - Score Attack, 2 - Marathon).
[in]LevelDesired virus/game level (if the game mode is "Classic" it contains the virus level, otherwise 0 - Easy, 1 - Normal, 2 - Hard).
[in]SpeedDesired speed (0 - Low, 1 - Medium, 2 - High).
[in]ScoreDesired score (final score without the last digit as it's always 0, assuming a score from 0 to 9999990, this parameter can assume values from from 0 to 999999).
[in]TimeDesired time (time when the game ended, expressed in tenths of second ranging from 0 to 59999, it represents the in-game time from 0'00.0 to 99'59.9 including tenths of a second not shown in-game).
[in]PlayerNameDesired player name (name of the player, 4 letters and it uses a special in-game encoding even for symbols).
[in]FrameCountDesired frame count (total amount of frames passed since the game started modulo 1024, used to add randomness in the password).
Returns
A 20 characters password encoding all this information (e.g. 2TL8A8WYDP5M5J80BT0P from https://tcrf.net/File:DrMario64-password.png).
Author
WaluigiBSOD

◆ _GenerateRandomPassword()

string _GenerateRandomPassword ( )

Generates a random password.

Returns
A 20 characters password encoding random valid data.
Author
WaluigiBSOD