Didactic XOR Cipher
-
- Posts: 6
- Joined: Thu Jan 21, 2010 11:22 pm
- Location: Portugal
Didactic XOR Cipher
is there any chance that the site is not working well? i think that i have figured out the answer and still it won't let me go through. Can anyone send me the answer on a PM or just give me some tips on this?
Sex is like hacking, you get in, you get out and you hope you didn't leave anything behind that can be traced back to you.
If you get both AND & OR then here's a breakdown with truth tables:
AND
0 0 → 0
0 1 → 0
1 0 → 0
1 1 → 1
OR
0 0 → 0
0 1 → 1
1 0 → 1
1 1 → 1
NOT
0 → 1
1 → 0
XOR
0 0 → 0
0 1 → 1
1 0 → 1
1 1 → 0
so in terms of AND, OR & NOT you'll find XOR can be expressed as (a OR b) AND (NOT(a AND b)) which is (a | b) & (~(a & b)) in C like languages, in these you're better off just using ^ though as that's the XOR operator. These operations are usually applied to strings of bits which turns out like:Was that something more like that you wanted?
AND
0 0 → 0
0 1 → 0
1 0 → 0
1 1 → 1
OR
0 0 → 0
0 1 → 1
1 0 → 1
1 1 → 1
NOT
0 → 1
1 → 0
XOR
0 0 → 0
0 1 → 1
1 0 → 1
1 1 → 0
so in terms of AND, OR & NOT you'll find XOR can be expressed as (a OR b) AND (NOT(a AND b)) which is (a | b) & (~(a & b)) in C like languages, in these you're better off just using ^ though as that's the XOR operator. These operations are usually applied to strings of bits which turns out like:
Code: Select all
a = 10100
b = 01110
a^b = 11010
Well, i took the number given in HEX and i copied it in MS.Word.
After every number (or letter, because it's hexadecimal) i clicked Enter.
Then i changed every number (or letter blabla) to his value in binary. After that a XORed every binary number with 79.
I do an example hoping to not spoiler too much.
the number started with 3, so i XORed 0000011 with 1001111 (it's 79, in binary), and i obtained 1001100. I did it with every number but now i don't know how to proceed
After every number (or letter, because it's hexadecimal) i clicked Enter.
Then i changed every number (or letter blabla) to his value in binary. After that a XORed every binary number with 79.
I do an example hoping to not spoiler too much.
the number started with 3, so i XORed 0000011 with 1001111 (it's 79, in binary), and i obtained 1001100. I did it with every number but now i don't know how to proceed
In Decimal one Byte is one Character (or 2 or 3 ^^), in Hex one Character isn't one Byte.erry wrote:Well, i took the number given in HEX and i copied it in MS.Word.
After every number (or letter, because it's hexadecimal) i clicked Enter.
Then i changed every number (or letter blabla) to his value in binary. After that a XORed every binary number with 79.
I do an example hoping to not spoiler too much.
the number started with 3, so i XORed 0000011 with 1001111 (it's 79, in binary), and i obtained 1001100. I did it with every number but now i don't know how to proceed