A cipher should be secure even if the attacker knows everything about it apart from the key.