A software engineer is assigned to write an encryption program, but such a program would be a threat to national security if distributed internationally.
RSA encryption is legally prohibited from being incorporated into a communication system. In this scenario a programmer distributes such a system without proper registration.