Having worked as a programmer for twenty years, most of that as a contractor (hence a different employer about once a year), I have never been asked to do anything illegal. This isn't said to mean no one is, but rather that, if you are asked to do something illegal, it is weird. It isn't the normal, messed up capitalist system, it isn't typical bureaucratic nonsense, it isn't the imperfect state of the world we live in. Most companies don't ask their programmers to do something illegal.
Therefore, if you are, you should leave that company, pronto. They're weird and probably desperate, and it is likely to get even worse. It's not normal. Get out, quickly.