A non compete would stop someone from working for a competitor but has nothing to do with disclosure of trade secrets. Non competes are marginally enforceable as courts will lean towards allowing former employees to make a living. Non competes also have to be limited to a certain geographic...