master cylinder gasket question

The foam would work find IMO. as you tighten up the nuts it will compress and seal great. Its there to keep water and dust out of the passenger compartment. It not under pressure so it would not take much to keep the water out. But just my $.02