The decision safeguard your invention with a patent or trade secret protection depends on a number of factors: http://blog.legalsolutions.thomsonreuters.com/small-law-firms/the-patent-or-padlock-dilemma-factors-in-choosing-between-patent-and-trade-secret-protection/