Painting the master cylinder

Howdy,

I'm on my third master cylinder since I purchased my car 3 years ago, and I've noticed that they really like to rust. My car doesn't really rust anywhere else, so I'm going to guess it has something to do with the brake fluid condensation or something. If I was to paint the master cylinder, what steps would i need to take to do so, and what kind of paint?