encrypt byte to bit