You would not connect your third-party encryption program directly to the MultiChain API. Instead you would process your content through this program to get some binary, and then convert it to hexadecimal and use the publish API to put that information in a stream on the blockchain.