Painting a Master Cylinder

I would look at Eastwood products, They may have something that would tolerate the brake fluid some.