If you need bits in a string format, you can use this function:
public string GetBits(string input) { StringBuilder sb = new StringBuilder(); foreach (byte b in Encoding.Unicode.GetBytes(input)) { sb.Append(Convert.ToString(b, 2)); } return sb.ToString(); }
If you use the Blue Box example, you get:
string bitString = GetBits("Blue Box");
John rasch
source share