Cryptography in java bytes to bits
<p>I wrote server and client and I would like to send some file which will be encrypted. So I have to operate on bits, not bytes, because my cryptography metod is like that: I send my file in parts of about 8 bits and I add to them some specific MAC. (its: winnowing and Chaffing metod)</p>

<p>In my program I read file into byte array. But I need byte to bits to add MAC adress to each part of file and send them in parts. </p>

<p>My question is:
Is there any posibility to operate on bits in Java, or if not how would you solve this problem? </p>
