S/MIME secures code by encrypting mail messages and their attachments through a mail application. [0071] In the preferred Unix??? embodiments, when an instant messaging or other application opens a STREAMS device, a STREAMS module tpicept will be inserted in the stream.