What's the best way to represent a bit mask (field)?

I have a design dilemma and hope some creative soul can suggest a “nice” way to present this in a form…

  • I have a field like this: 1010111011
    This is a bit mask
  • I would like an easy to use UI widget to toggle each bit. My immediate response is to use check-boxes but this implies a field for each bit which I would like to avoid.

What’s the best way to represent this field?

I’m not a (strong) programmer and I’m open to suggestions.

Thanks in advance