private void button5_Click(object sender, EventArgs e) { Random r = new Random(); byte[] bs = new byte[200]; r.NextBytes(bs); textBox1.Text = Hexdump.dump(bs); }
private void button4_Click(object sender, EventArgs e) { StringBuilder sb = new StringBuilder(); ctable.update(textBox1.Text); Bitstream bs = new Bitstream(); sb.Append("Before:\r\n\r\n"); sb.Append(Hexdump.dump(textBox1.Text)); sb.Append("\r\n\r\nAfter:\r\n\r\n"); Dictionary <char, string> enc = ctable.encoding(); foreach (char c in textBox1.Text) { bs.write(enc[c]); } sb.Append(Hexdump.dump(bs.bytes)); textBox1.Text = sb.ToString(); }