get a good socket from West Marine for just a few bucks that won't rust up on you. Corrosion, rust and electricity don't mix very well on a boat. You can use a project box just fine but you need to mount it to a fixed point or use strain relief devices on the box for the wire. In that case use some pretty flexible and strong wire. Best just to mount it solid.