Any contract code written on the blockchain cannot be hacked or manipulated. People can execute the code written on the blockchain but they cannot do anything more than that.
So, your privacy is always intact and nobody can modify your code. Anyone could see the compiled bytecode, but they cannot see how it works. So your contract is public but as long as you don't publish the address there's no problem. Still I would suggest you to keep the information private to the chain.