I was curious how the passwords are generated between The Legend of Zelda: Oracle of Seasons and Ages games. I have done some limited research on it, and have discovered that what you name your character and the newborn in the main town have an impact on it, as well as some predetermined game ID, but I was also interested how those were involved and how so much other data was compacted into the twenty character string. I found this out using a guide from IGN and a password generator executable.
The password is based on several factors.
As far as the exact algorithm, that I have no clue about.