if you mean the tamagotchi town passwords you need to do this: you know you enter and they ask you the user name, well, the user name needs to be the EXACT user name placed on the tamagotchi(this hint is only useful for V3).
if you mean the shop codes: go to shop and when the white guy appears...