have you ever extracted a stored encryption key from code
===

I been researching how best to store an encryption key in code.  The answers and advice many people give is that to not do it because it can be obtained from the code.  For example... http://bit.ly/16wpVU.

So my question is, have you ever done this?  Or at least have you done the technique required to do this but maybe for other purposes?  How exactly is it done so that if the decision is made to hide an encryption key in the code people can be better prepared for it if at all?


thanks
jose