Results 1 to 4 of 4
- 04-12-2010, 06:49 PM #1
Help in implementing XOR functions
Hi guyz, i have an algorithm that i want to code in java. The algorith is as follows.
MD5 ("1234567890123475e8dd316726b0335") = 8f 43 ae 1a 33 19 c6 49 cc 57 40 8b 6a 39 2d 6b
8f xor 33 xor cc xor 6a =1a
43 xor 19 xor 57 xor 39 =34
ae xor c6 xor 40 xor 2d =05
1a xor 49 xor 8b xor 6b =b3
1a3405b3 and 1ffffff or 2000000 = 23405B3
hex2dec (23405B3) = 36963763
So far i am able to do the MD5 part and come up with the 32 characters. Now my problem comes when doing the XOR functions on the 32 hex characters.
If you have noticed, from the first two characters, the next pick is done after every 6 characters and so on until the 32 characters are done.
I hope have provided sufficient information for anyone to understand whats going on here.
Any one with ideas on where i should start?
Your views are highly appreciatedWe Learn Through Mistakes..,
Manfizy:rolleyes:
- 04-12-2010, 07:10 PM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
What should be the fundamental to work on with XOR, or any other binary operation?
- 04-12-2010, 07:34 PM #3
OK am using this algorithm to calculate unlock code for a certain modem.
having done the MD5 part which is used in cryptology, XOR operations are done on the hash string from the MD5.
Basically, what am interested in for now is something like this:
have 8f43ae1a3319c649cc57408b6a392d6b (which is in hex) in an array
THEN
xor functions performed for every 4 bytesWe Learn Through Mistakes..,
Manfizy:rolleyes:
- 04-13-2010, 02:25 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
But anyway we need it in binary form, isn't it?
Similar Threads
-
JSP Functions
By sysout in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 11-07-2009, 04:10 AM -
2 functions
By baze7 in forum New To JavaReplies: 3Last Post: 08-14-2009, 04:41 AM -
Functions in jsp
By samson in forum JavaServer Pages (JSP) and JSTLReplies: 3Last Post: 03-25-2009, 10:04 PM -
Button Functions
By codeflip in forum New To JavaReplies: 1Last Post: 03-12-2009, 02:26 AM -
problems with functions
By kri in forum New To JavaReplies: 6Last Post: 02-07-2009, 08:09 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks