Well, if I'm reading you right, there are a couple of problem with what you're talking about.
(1) One-time pads do not have "keys". The pad, a long series of (nearly) random characters, is the key. Therefore, you wouldn't be able to store it in your head.
You could, though, store it on some external medium - like a cd or tape drive.
(2) While having the program calulate the rest of the key based on your password would work, it would not be cryptographically secure. This is because you would (a) have to have part of the equation that computes the key inside the program. And that could be compromised. (

You would eventually get repeating characters, making the key far less secure than a one-time pad.
(3) Enciphering a program? Like and .exe file? In that case you'll need another program - to do the enciphering. Cause once the program is enciphered it will just be meaningless bits to the computer.
(4) If you change what your need enciphered, you should change the key or pad.
While I'm not sure what your doing, I suggest you start small. If you encipher something important without fully undstanding how to decipher it you could end up losing the data.
Good luck!
This post has been edited by MajorWalrus: 3 Aug, 2009 - 01:46 PM