For whatever smart device you carry, there should be an app that does what you are looking for. Outside of some devices used by military/government, I don't know of any dedicated pocket-size device that can be used to store passwords (and in the case of military/government, these types of devices are used to store keying material, not pins/passwords).