The save/load code is not password for something stored on your computer.
Its a bunch of encrypted information.
If we want to save hero, level and items, our code can look like this:
HXXX-LXXX-IXXIXXIXXIXXIXXIXX
Every value is stored in a table, and when you enter the code, a trigger will look up the values and check if every value is vaild, and then create the hero, set the level, and add the items.
A table can look like this:
Hero:
H001 - Paladin
H002 - Mountain King
H003 - Archmage
H004 - Blood Mage
Level:
L001 - 1
L002 - 2
L003 - 3
Item:
I01 - Potion of healing
I02 - Potion of mana
I03 - Claws of attack
So if our code is H003-L002-I01I01I02I02I03I03, the system will create a Blood Mage, set his level to two, and add two potion of healing, two potion of mana and two claws of attack.
The more information you want to store, the longer will the code be. Some system also save some letter from your user name into the code. So if your trying to load your hero with a different user name, it can fail.