This is the point of Kerckhoff's Principle, that we don't need to keep the encryption algorithm or the decryption algorithm secret, we want to make those public so they are carefully tested and understood, and analyzed by many people. 