I believe that the gadget that you are seeking is commonly referred to as the human mind.
If yours is failing, consider writing down your pins and passwords in a code format. The chances that someone, upon finding the written document, is going to go to the trouble of hacking your code are, I suspect, quite small indeed.