|
-
Jul 24th, 2010, 02:23 PM
#1
Thread Starter
New Member
[RESOLVED] XOR data from input string
Hi,
I have made a simple windows form, with a input (textBox1), a Calculate button (button1), and another textBox2 for the result.
But I'am quite new to this Windows form and C#. But eager to learn
I would like to be able to insert a hex string like this: 41, 4d, 21, 04
And then be able to calculate the XOR value (41^4d^21^04) when pressing the Calculate button
Could anyone help me, or point me in the right direction?
This is what I have so far:
private void button1_Click(object sender, EventArgs e)
{
// comma delimited hex string from userinput textbox1
string commaDelimited = textBox1.Text;
// separate individual items between commas
string[] value = commaDelimited.Split(new char[] { ',' });
foreach (string number in value)
{
Last edited by bbhe; Jul 24th, 2010 at 06:27 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|